From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/wx/src/gen/gl.erl | 4034 +++++++++++++++++++++++++ lib/wx/src/gen/gl_debug.hrl | 697 +++++ lib/wx/src/gen/glu.erl | 231 ++ lib/wx/src/gen/wxAcceleratorEntry.erl | 109 + lib/wx/src/gen/wxAcceleratorTable.erl | 62 + lib/wx/src/gen/wxArtProvider.erl | 72 + lib/wx/src/gen/wxAuiDockArt.erl | 34 + lib/wx/src/gen/wxAuiManager.erl | 316 ++ lib/wx/src/gen/wxAuiManagerEvent.erl | 163 + lib/wx/src/gen/wxAuiNotebook.erl | 666 ++++ lib/wx/src/gen/wxAuiNotebookEvent.erl | 138 + lib/wx/src/gen/wxAuiPaneInfo.erl | 785 +++++ lib/wx/src/gen/wxAuiTabArt.erl | 34 + lib/wx/src/gen/wxBitmap.erl | 299 ++ lib/wx/src/gen/wxBitmapButton.erl | 564 ++++ lib/wx/src/gen/wxBitmapDataObject.erl | 87 + lib/wx/src/gen/wxBoxSizer.erl | 161 + lib/wx/src/gen/wxBrush.erl | 142 + lib/wx/src/gen/wxBufferedDC.erl | 348 +++ lib/wx/src/gen/wxBufferedPaintDC.erl | 309 ++ lib/wx/src/gen/wxButton.erl | 518 ++++ lib/wx/src/gen/wxCalendarCtrl.erl | 680 +++++ lib/wx/src/gen/wxCalendarDateAttr.erl | 227 ++ lib/wx/src/gen/wxCalendarEvent.erl | 99 + lib/wx/src/gen/wxCaret.erl | 181 ++ lib/wx/src/gen/wxCheckBox.erl | 554 ++++ lib/wx/src/gen/wxCheckListBox.erl | 564 ++++ lib/wx/src/gen/wxChildFocusEvent.erl | 92 + lib/wx/src/gen/wxChoice.erl | 574 ++++ lib/wx/src/gen/wxChoicebook.erl | 698 +++++ lib/wx/src/gen/wxClientDC.erl | 267 ++ lib/wx/src/gen/wxClipboard.erl | 138 + lib/wx/src/gen/wxCloseEvent.erl | 110 + lib/wx/src/gen/wxColourData.erl | 100 + lib/wx/src/gen/wxColourDialog.erl | 570 ++++ lib/wx/src/gen/wxColourPickerCtrl.erl | 560 ++++ lib/wx/src/gen/wxColourPickerEvent.erl | 92 + lib/wx/src/gen/wxComboBox.erl | 693 +++++ lib/wx/src/gen/wxCommandEvent.erl | 129 + lib/wx/src/gen/wxContextMenuEvent.erl | 100 + lib/wx/src/gen/wxControl.erl | 449 +++ lib/wx/src/gen/wxControlWithItems.erl | 612 ++++ lib/wx/src/gen/wxCursor.erl | 131 + lib/wx/src/gen/wxDC.erl | 831 +++++ lib/wx/src/gen/wxDataObject.erl | 34 + lib/wx/src/gen/wxDateEvent.erl | 92 + lib/wx/src/gen/wxDatePickerCtrl.erl | 540 ++++ lib/wx/src/gen/wxDialog.erl | 630 ++++ lib/wx/src/gen/wxDirDialog.erl | 574 ++++ lib/wx/src/gen/wxDirPickerCtrl.erl | 550 ++++ lib/wx/src/gen/wxDisplayChangedEvent.erl | 62 + lib/wx/src/gen/wxEraseEvent.erl | 69 + lib/wx/src/gen/wxEvent.erl | 103 + lib/wx/src/gen/wxEvtHandler.erl | 203 ++ lib/wx/src/gen/wxFileDataObject.erl | 67 + lib/wx/src/gen/wxFileDialog.erl | 658 ++++ lib/wx/src/gen/wxFileDirPickerEvent.erl | 92 + lib/wx/src/gen/wxFilePickerCtrl.erl | 552 ++++ lib/wx/src/gen/wxFindReplaceData.erl | 101 + lib/wx/src/gen/wxFindReplaceDialog.erl | 574 ++++ lib/wx/src/gen/wxFlexGridSizer.erl | 281 ++ lib/wx/src/gen/wxFocusEvent.erl | 69 + lib/wx/src/gen/wxFont.erl | 227 ++ lib/wx/src/gen/wxFontData.erl | 153 + lib/wx/src/gen/wxFontDialog.erl | 550 ++++ lib/wx/src/gen/wxFontPickerCtrl.erl | 563 ++++ lib/wx/src/gen/wxFontPickerEvent.erl | 92 + lib/wx/src/gen/wxFrame.erl | 699 +++++ lib/wx/src/gen/wxGBSizerItem.erl | 110 + lib/wx/src/gen/wxGLCanvas.erl | 524 ++++ lib/wx/src/gen/wxGauge.erl | 571 ++++ lib/wx/src/gen/wxGenericDirCtrl.erl | 618 ++++ lib/wx/src/gen/wxGraphicsBrush.erl | 43 + lib/wx/src/gen/wxGraphicsContext.erl | 461 +++ lib/wx/src/gen/wxGraphicsFont.erl | 43 + lib/wx/src/gen/wxGraphicsMatrix.erl | 149 + lib/wx/src/gen/wxGraphicsObject.erl | 48 + lib/wx/src/gen/wxGraphicsPath.erl | 236 ++ lib/wx/src/gen/wxGraphicsPen.erl | 43 + lib/wx/src/gen/wxGraphicsRenderer.erl | 136 + lib/wx/src/gen/wxGrid.erl | 2264 ++++++++++++++ lib/wx/src/gen/wxGridBagSizer.erl | 525 ++++ lib/wx/src/gen/wxGridCellAttr.erl | 207 ++ lib/wx/src/gen/wxGridCellBoolEditor.erl | 99 + lib/wx/src/gen/wxGridCellBoolRenderer.erl | 55 + lib/wx/src/gen/wxGridCellChoiceEditor.erl | 96 + lib/wx/src/gen/wxGridCellEditor.erl | 135 + lib/wx/src/gen/wxGridCellFloatEditor.erl | 94 + lib/wx/src/gen/wxGridCellFloatRenderer.erl | 109 + lib/wx/src/gen/wxGridCellNumberEditor.erl | 104 + lib/wx/src/gen/wxGridCellNumberRenderer.erl | 58 + lib/wx/src/gen/wxGridCellRenderer.erl | 56 + lib/wx/src/gen/wxGridCellStringRenderer.erl | 55 + lib/wx/src/gen/wxGridCellTextEditor.erl | 83 + lib/wx/src/gen/wxGridEvent.erl | 151 + lib/wx/src/gen/wxGridSizer.erl | 233 ++ lib/wx/src/gen/wxHelpEvent.erl | 96 + lib/wx/src/gen/wxHtmlEasyPrinting.erl | 196 ++ lib/wx/src/gen/wxHtmlLinkEvent.erl | 92 + lib/wx/src/gen/wxHtmlWindow.erl | 695 +++++ lib/wx/src/gen/wxIcon.erl | 131 + lib/wx/src/gen/wxIconBundle.erl | 113 + lib/wx/src/gen/wxIconizeEvent.erl | 69 + lib/wx/src/gen/wxIdleEvent.erl | 111 + lib/wx/src/gen/wxImage.erl | 905 ++++++ lib/wx/src/gen/wxImageList.erl | 200 ++ lib/wx/src/gen/wxJoystickEvent.erl | 174 ++ lib/wx/src/gen/wxKeyEvent.erl | 162 + lib/wx/src/gen/wxLayoutAlgorithm.erl | 104 + lib/wx/src/gen/wxListBox.erl | 615 ++++ lib/wx/src/gen/wxListCtrl.erl | 1100 +++++++ lib/wx/src/gen/wxListEvent.erl | 186 ++ lib/wx/src/gen/wxListItem.erl | 242 ++ lib/wx/src/gen/wxListView.erl | 513 ++++ lib/wx/src/gen/wxListbook.erl | 698 +++++ lib/wx/src/gen/wxLogNull.erl | 46 + lib/wx/src/gen/wxMDIChildFrame.erl | 618 ++++ lib/wx/src/gen/wxMDIClientWindow.erl | 486 +++ lib/wx/src/gen/wxMDIParentFrame.erl | 654 ++++ lib/wx/src/gen/wxMask.erl | 103 + lib/wx/src/gen/wxMaximizeEvent.erl | 62 + lib/wx/src/gen/wxMemoryDC.erl | 285 ++ lib/wx/src/gen/wxMenu.erl | 624 ++++ lib/wx/src/gen/wxMenuBar.erl | 662 ++++ lib/wx/src/gen/wxMenuEvent.erl | 83 + lib/wx/src/gen/wxMenuItem.erl | 245 ++ lib/wx/src/gen/wxMessageDialog.erl | 541 ++++ lib/wx/src/gen/wxMiniFrame.erl | 590 ++++ lib/wx/src/gen/wxMirrorDC.erl | 259 ++ lib/wx/src/gen/wxMouseCaptureChangedEvent.erl | 69 + lib/wx/src/gen/wxMouseEvent.erl | 348 +++ lib/wx/src/gen/wxMoveEvent.erl | 69 + lib/wx/src/gen/wxMultiChoiceDialog.erl | 565 ++++ lib/wx/src/gen/wxNavigationKeyEvent.erl | 123 + lib/wx/src/gen/wxNcPaintEvent.erl | 62 + lib/wx/src/gen/wxNotebook.erl | 720 +++++ lib/wx/src/gen/wxNotebookEvent.erl | 122 + lib/wx/src/gen/wxNotifyEvent.erl | 102 + lib/wx/src/gen/wxPageSetupDialog.erl | 72 + lib/wx/src/gen/wxPageSetupDialogData.erl | 294 ++ lib/wx/src/gen/wxPaintDC.erl | 267 ++ lib/wx/src/gen/wxPaintEvent.erl | 62 + lib/wx/src/gen/wxPalette.erl | 98 + lib/wx/src/gen/wxPaletteChangedEvent.erl | 77 + lib/wx/src/gen/wxPanel.erl | 493 +++ lib/wx/src/gen/wxPasswordEntryDialog.erl | 550 ++++ lib/wx/src/gen/wxPen.erl | 156 + lib/wx/src/gen/wxPickerBase.erl | 552 ++++ lib/wx/src/gen/wxPostScriptDC.erl | 277 ++ lib/wx/src/gen/wxPreviewCanvas.erl | 475 +++ lib/wx/src/gen/wxPreviewControlBar.erl | 497 +++ lib/wx/src/gen/wxPreviewFrame.erl | 593 ++++ lib/wx/src/gen/wxPrintData.erl | 207 ++ lib/wx/src/gen/wxPrintDialog.erl | 564 ++++ lib/wx/src/gen/wxPrintDialogData.erl | 243 ++ lib/wx/src/gen/wxPrintPreview.erl | 192 ++ lib/wx/src/gen/wxPrinter.erl | 135 + lib/wx/src/gen/wxPrintout.erl | 274 ++ lib/wx/src/gen/wxProgressDialog.erl | 571 ++++ lib/wx/src/gen/wxQueryNewPaletteEvent.erl | 77 + lib/wx/src/gen/wxRadioBox.erl | 663 ++++ lib/wx/src/gen/wxRadioButton.erl | 512 ++++ lib/wx/src/gen/wxRegion.erl | 305 ++ lib/wx/src/gen/wxSashEvent.erl | 110 + lib/wx/src/gen/wxSashLayoutWindow.erl | 566 ++++ lib/wx/src/gen/wxSashWindow.erl | 552 ++++ lib/wx/src/gen/wxScreenDC.erl | 257 ++ lib/wx/src/gen/wxScrollBar.erl | 546 ++++ lib/wx/src/gen/wxScrollEvent.erl | 99 + lib/wx/src/gen/wxScrollWinEvent.erl | 76 + lib/wx/src/gen/wxScrolledWindow.erl | 590 ++++ lib/wx/src/gen/wxSetCursorEvent.erl | 98 + lib/wx/src/gen/wxShowEvent.erl | 77 + lib/wx/src/gen/wxSingleChoiceDialog.erl | 571 ++++ lib/wx/src/gen/wxSizeEvent.erl | 69 + lib/wx/src/gen/wxSizer.erl | 761 +++++ lib/wx/src/gen/wxSizerFlags.erl | 134 + lib/wx/src/gen/wxSizerItem.erl | 354 +++ lib/wx/src/gen/wxSlider.erl | 579 ++++ lib/wx/src/gen/wxSpinButton.erl | 533 ++++ lib/wx/src/gen/wxSpinCtrl.erl | 562 ++++ lib/wx/src/gen/wxSpinEvent.erl | 109 + lib/wx/src/gen/wxSplashScreen.erl | 582 ++++ lib/wx/src/gen/wxSplitterEvent.erl | 130 + lib/wx/src/gen/wxSplitterWindow.erl | 680 +++++ lib/wx/src/gen/wxStaticBitmap.erl | 510 ++++ lib/wx/src/gen/wxStaticBox.erl | 495 +++ lib/wx/src/gen/wxStaticBoxSizer.erl | 189 ++ lib/wx/src/gen/wxStaticLine.erl | 509 ++++ lib/wx/src/gen/wxStaticText.erl | 515 ++++ lib/wx/src/gen/wxStatusBar.erl | 625 ++++ lib/wx/src/gen/wxStdDialogButtonSizer.erl | 198 ++ lib/wx/src/gen/wxStyledTextCtrl.erl | 3980 ++++++++++++++++++++++++ lib/wx/src/gen/wxStyledTextEvent.erl | 252 ++ lib/wx/src/gen/wxSysColourChangedEvent.erl | 62 + lib/wx/src/gen/wxTextAttr.erl | 253 ++ lib/wx/src/gen/wxTextCtrl.erl | 876 ++++++ lib/wx/src/gen/wxTextDataObject.erl | 84 + lib/wx/src/gen/wxTextEntryDialog.erl | 558 ++++ lib/wx/src/gen/wxToggleButton.erl | 512 ++++ lib/wx/src/gen/wxToolBar.erl | 919 ++++++ lib/wx/src/gen/wxToolTip.erl | 85 + lib/wx/src/gen/wxToolbook.erl | 698 +++++ lib/wx/src/gen/wxTopLevelWindow.erl | 631 ++++ lib/wx/src/gen/wxTreeCtrl.erl | 1146 +++++++ lib/wx/src/gen/wxTreeEvent.erl | 153 + lib/wx/src/gen/wxTreebook.erl | 746 +++++ lib/wx/src/gen/wxUpdateUIEvent.erl | 219 ++ lib/wx/src/gen/wxWindow.erl | 1708 +++++++++++ lib/wx/src/gen/wxWindowCreateEvent.erl | 85 + lib/wx/src/gen/wxWindowDC.erl | 264 ++ lib/wx/src/gen/wxWindowDestroyEvent.erl | 85 + lib/wx/src/gen/wxXmlResource.erl | 326 ++ lib/wx/src/gen/wx_misc.erl | 216 ++ lib/wx/src/gen/wxe_debug.hrl | 3279 ++++++++++++++++++++ lib/wx/src/gen/wxe_funcs.hrl | 3273 ++++++++++++++++++++ 216 files changed, 86593 insertions(+) create mode 100644 lib/wx/src/gen/gl.erl create mode 100644 lib/wx/src/gen/gl_debug.hrl create mode 100644 lib/wx/src/gen/glu.erl create mode 100644 lib/wx/src/gen/wxAcceleratorEntry.erl create mode 100644 lib/wx/src/gen/wxAcceleratorTable.erl create mode 100644 lib/wx/src/gen/wxArtProvider.erl create mode 100644 lib/wx/src/gen/wxAuiDockArt.erl create mode 100644 lib/wx/src/gen/wxAuiManager.erl create mode 100644 lib/wx/src/gen/wxAuiManagerEvent.erl create mode 100644 lib/wx/src/gen/wxAuiNotebook.erl create mode 100644 lib/wx/src/gen/wxAuiNotebookEvent.erl create mode 100644 lib/wx/src/gen/wxAuiPaneInfo.erl create mode 100644 lib/wx/src/gen/wxAuiTabArt.erl create mode 100644 lib/wx/src/gen/wxBitmap.erl create mode 100644 lib/wx/src/gen/wxBitmapButton.erl create mode 100644 lib/wx/src/gen/wxBitmapDataObject.erl create mode 100644 lib/wx/src/gen/wxBoxSizer.erl create mode 100644 lib/wx/src/gen/wxBrush.erl create mode 100644 lib/wx/src/gen/wxBufferedDC.erl create mode 100644 lib/wx/src/gen/wxBufferedPaintDC.erl create mode 100644 lib/wx/src/gen/wxButton.erl create mode 100644 lib/wx/src/gen/wxCalendarCtrl.erl create mode 100644 lib/wx/src/gen/wxCalendarDateAttr.erl create mode 100644 lib/wx/src/gen/wxCalendarEvent.erl create mode 100644 lib/wx/src/gen/wxCaret.erl create mode 100644 lib/wx/src/gen/wxCheckBox.erl create mode 100644 lib/wx/src/gen/wxCheckListBox.erl create mode 100644 lib/wx/src/gen/wxChildFocusEvent.erl create mode 100644 lib/wx/src/gen/wxChoice.erl create mode 100644 lib/wx/src/gen/wxChoicebook.erl create mode 100644 lib/wx/src/gen/wxClientDC.erl create mode 100644 lib/wx/src/gen/wxClipboard.erl create mode 100644 lib/wx/src/gen/wxCloseEvent.erl create mode 100644 lib/wx/src/gen/wxColourData.erl create mode 100644 lib/wx/src/gen/wxColourDialog.erl create mode 100644 lib/wx/src/gen/wxColourPickerCtrl.erl create mode 100644 lib/wx/src/gen/wxColourPickerEvent.erl create mode 100644 lib/wx/src/gen/wxComboBox.erl create mode 100644 lib/wx/src/gen/wxCommandEvent.erl create mode 100644 lib/wx/src/gen/wxContextMenuEvent.erl create mode 100644 lib/wx/src/gen/wxControl.erl create mode 100644 lib/wx/src/gen/wxControlWithItems.erl create mode 100644 lib/wx/src/gen/wxCursor.erl create mode 100644 lib/wx/src/gen/wxDC.erl create mode 100644 lib/wx/src/gen/wxDataObject.erl create mode 100644 lib/wx/src/gen/wxDateEvent.erl create mode 100644 lib/wx/src/gen/wxDatePickerCtrl.erl create mode 100644 lib/wx/src/gen/wxDialog.erl create mode 100644 lib/wx/src/gen/wxDirDialog.erl create mode 100644 lib/wx/src/gen/wxDirPickerCtrl.erl create mode 100644 lib/wx/src/gen/wxDisplayChangedEvent.erl create mode 100644 lib/wx/src/gen/wxEraseEvent.erl create mode 100644 lib/wx/src/gen/wxEvent.erl create mode 100644 lib/wx/src/gen/wxEvtHandler.erl create mode 100644 lib/wx/src/gen/wxFileDataObject.erl create mode 100644 lib/wx/src/gen/wxFileDialog.erl create mode 100644 lib/wx/src/gen/wxFileDirPickerEvent.erl create mode 100644 lib/wx/src/gen/wxFilePickerCtrl.erl create mode 100644 lib/wx/src/gen/wxFindReplaceData.erl create mode 100644 lib/wx/src/gen/wxFindReplaceDialog.erl create mode 100644 lib/wx/src/gen/wxFlexGridSizer.erl create mode 100644 lib/wx/src/gen/wxFocusEvent.erl create mode 100644 lib/wx/src/gen/wxFont.erl create mode 100644 lib/wx/src/gen/wxFontData.erl create mode 100644 lib/wx/src/gen/wxFontDialog.erl create mode 100644 lib/wx/src/gen/wxFontPickerCtrl.erl create mode 100644 lib/wx/src/gen/wxFontPickerEvent.erl create mode 100644 lib/wx/src/gen/wxFrame.erl create mode 100644 lib/wx/src/gen/wxGBSizerItem.erl create mode 100644 lib/wx/src/gen/wxGLCanvas.erl create mode 100644 lib/wx/src/gen/wxGauge.erl create mode 100644 lib/wx/src/gen/wxGenericDirCtrl.erl create mode 100644 lib/wx/src/gen/wxGraphicsBrush.erl create mode 100644 lib/wx/src/gen/wxGraphicsContext.erl create mode 100644 lib/wx/src/gen/wxGraphicsFont.erl create mode 100644 lib/wx/src/gen/wxGraphicsMatrix.erl create mode 100644 lib/wx/src/gen/wxGraphicsObject.erl create mode 100644 lib/wx/src/gen/wxGraphicsPath.erl create mode 100644 lib/wx/src/gen/wxGraphicsPen.erl create mode 100644 lib/wx/src/gen/wxGraphicsRenderer.erl create mode 100644 lib/wx/src/gen/wxGrid.erl create mode 100644 lib/wx/src/gen/wxGridBagSizer.erl create mode 100644 lib/wx/src/gen/wxGridCellAttr.erl create mode 100644 lib/wx/src/gen/wxGridCellBoolEditor.erl create mode 100644 lib/wx/src/gen/wxGridCellBoolRenderer.erl create mode 100644 lib/wx/src/gen/wxGridCellChoiceEditor.erl create mode 100644 lib/wx/src/gen/wxGridCellEditor.erl create mode 100644 lib/wx/src/gen/wxGridCellFloatEditor.erl create mode 100644 lib/wx/src/gen/wxGridCellFloatRenderer.erl create mode 100644 lib/wx/src/gen/wxGridCellNumberEditor.erl create mode 100644 lib/wx/src/gen/wxGridCellNumberRenderer.erl create mode 100644 lib/wx/src/gen/wxGridCellRenderer.erl create mode 100644 lib/wx/src/gen/wxGridCellStringRenderer.erl create mode 100644 lib/wx/src/gen/wxGridCellTextEditor.erl create mode 100644 lib/wx/src/gen/wxGridEvent.erl create mode 100644 lib/wx/src/gen/wxGridSizer.erl create mode 100644 lib/wx/src/gen/wxHelpEvent.erl create mode 100644 lib/wx/src/gen/wxHtmlEasyPrinting.erl create mode 100644 lib/wx/src/gen/wxHtmlLinkEvent.erl create mode 100644 lib/wx/src/gen/wxHtmlWindow.erl create mode 100644 lib/wx/src/gen/wxIcon.erl create mode 100644 lib/wx/src/gen/wxIconBundle.erl create mode 100644 lib/wx/src/gen/wxIconizeEvent.erl create mode 100644 lib/wx/src/gen/wxIdleEvent.erl create mode 100644 lib/wx/src/gen/wxImage.erl create mode 100644 lib/wx/src/gen/wxImageList.erl create mode 100644 lib/wx/src/gen/wxJoystickEvent.erl create mode 100644 lib/wx/src/gen/wxKeyEvent.erl create mode 100644 lib/wx/src/gen/wxLayoutAlgorithm.erl create mode 100644 lib/wx/src/gen/wxListBox.erl create mode 100644 lib/wx/src/gen/wxListCtrl.erl create mode 100644 lib/wx/src/gen/wxListEvent.erl create mode 100644 lib/wx/src/gen/wxListItem.erl create mode 100644 lib/wx/src/gen/wxListView.erl create mode 100644 lib/wx/src/gen/wxListbook.erl create mode 100644 lib/wx/src/gen/wxLogNull.erl create mode 100644 lib/wx/src/gen/wxMDIChildFrame.erl create mode 100644 lib/wx/src/gen/wxMDIClientWindow.erl create mode 100644 lib/wx/src/gen/wxMDIParentFrame.erl create mode 100644 lib/wx/src/gen/wxMask.erl create mode 100644 lib/wx/src/gen/wxMaximizeEvent.erl create mode 100644 lib/wx/src/gen/wxMemoryDC.erl create mode 100644 lib/wx/src/gen/wxMenu.erl create mode 100644 lib/wx/src/gen/wxMenuBar.erl create mode 100644 lib/wx/src/gen/wxMenuEvent.erl create mode 100644 lib/wx/src/gen/wxMenuItem.erl create mode 100644 lib/wx/src/gen/wxMessageDialog.erl create mode 100644 lib/wx/src/gen/wxMiniFrame.erl create mode 100644 lib/wx/src/gen/wxMirrorDC.erl create mode 100644 lib/wx/src/gen/wxMouseCaptureChangedEvent.erl create mode 100644 lib/wx/src/gen/wxMouseEvent.erl create mode 100644 lib/wx/src/gen/wxMoveEvent.erl create mode 100644 lib/wx/src/gen/wxMultiChoiceDialog.erl create mode 100644 lib/wx/src/gen/wxNavigationKeyEvent.erl create mode 100644 lib/wx/src/gen/wxNcPaintEvent.erl create mode 100644 lib/wx/src/gen/wxNotebook.erl create mode 100644 lib/wx/src/gen/wxNotebookEvent.erl create mode 100644 lib/wx/src/gen/wxNotifyEvent.erl create mode 100644 lib/wx/src/gen/wxPageSetupDialog.erl create mode 100644 lib/wx/src/gen/wxPageSetupDialogData.erl create mode 100644 lib/wx/src/gen/wxPaintDC.erl create mode 100644 lib/wx/src/gen/wxPaintEvent.erl create mode 100644 lib/wx/src/gen/wxPalette.erl create mode 100644 lib/wx/src/gen/wxPaletteChangedEvent.erl create mode 100644 lib/wx/src/gen/wxPanel.erl create mode 100644 lib/wx/src/gen/wxPasswordEntryDialog.erl create mode 100644 lib/wx/src/gen/wxPen.erl create mode 100644 lib/wx/src/gen/wxPickerBase.erl create mode 100644 lib/wx/src/gen/wxPostScriptDC.erl create mode 100644 lib/wx/src/gen/wxPreviewCanvas.erl create mode 100644 lib/wx/src/gen/wxPreviewControlBar.erl create mode 100644 lib/wx/src/gen/wxPreviewFrame.erl create mode 100644 lib/wx/src/gen/wxPrintData.erl create mode 100644 lib/wx/src/gen/wxPrintDialog.erl create mode 100644 lib/wx/src/gen/wxPrintDialogData.erl create mode 100644 lib/wx/src/gen/wxPrintPreview.erl create mode 100644 lib/wx/src/gen/wxPrinter.erl create mode 100644 lib/wx/src/gen/wxPrintout.erl create mode 100644 lib/wx/src/gen/wxProgressDialog.erl create mode 100644 lib/wx/src/gen/wxQueryNewPaletteEvent.erl create mode 100644 lib/wx/src/gen/wxRadioBox.erl create mode 100644 lib/wx/src/gen/wxRadioButton.erl create mode 100644 lib/wx/src/gen/wxRegion.erl create mode 100644 lib/wx/src/gen/wxSashEvent.erl create mode 100644 lib/wx/src/gen/wxSashLayoutWindow.erl create mode 100644 lib/wx/src/gen/wxSashWindow.erl create mode 100644 lib/wx/src/gen/wxScreenDC.erl create mode 100644 lib/wx/src/gen/wxScrollBar.erl create mode 100644 lib/wx/src/gen/wxScrollEvent.erl create mode 100644 lib/wx/src/gen/wxScrollWinEvent.erl create mode 100644 lib/wx/src/gen/wxScrolledWindow.erl create mode 100644 lib/wx/src/gen/wxSetCursorEvent.erl create mode 100644 lib/wx/src/gen/wxShowEvent.erl create mode 100644 lib/wx/src/gen/wxSingleChoiceDialog.erl create mode 100644 lib/wx/src/gen/wxSizeEvent.erl create mode 100644 lib/wx/src/gen/wxSizer.erl create mode 100644 lib/wx/src/gen/wxSizerFlags.erl create mode 100644 lib/wx/src/gen/wxSizerItem.erl create mode 100644 lib/wx/src/gen/wxSlider.erl create mode 100644 lib/wx/src/gen/wxSpinButton.erl create mode 100644 lib/wx/src/gen/wxSpinCtrl.erl create mode 100644 lib/wx/src/gen/wxSpinEvent.erl create mode 100644 lib/wx/src/gen/wxSplashScreen.erl create mode 100644 lib/wx/src/gen/wxSplitterEvent.erl create mode 100644 lib/wx/src/gen/wxSplitterWindow.erl create mode 100644 lib/wx/src/gen/wxStaticBitmap.erl create mode 100644 lib/wx/src/gen/wxStaticBox.erl create mode 100644 lib/wx/src/gen/wxStaticBoxSizer.erl create mode 100644 lib/wx/src/gen/wxStaticLine.erl create mode 100644 lib/wx/src/gen/wxStaticText.erl create mode 100644 lib/wx/src/gen/wxStatusBar.erl create mode 100644 lib/wx/src/gen/wxStdDialogButtonSizer.erl create mode 100644 lib/wx/src/gen/wxStyledTextCtrl.erl create mode 100644 lib/wx/src/gen/wxStyledTextEvent.erl create mode 100644 lib/wx/src/gen/wxSysColourChangedEvent.erl create mode 100644 lib/wx/src/gen/wxTextAttr.erl create mode 100644 lib/wx/src/gen/wxTextCtrl.erl create mode 100644 lib/wx/src/gen/wxTextDataObject.erl create mode 100644 lib/wx/src/gen/wxTextEntryDialog.erl create mode 100644 lib/wx/src/gen/wxToggleButton.erl create mode 100644 lib/wx/src/gen/wxToolBar.erl create mode 100644 lib/wx/src/gen/wxToolTip.erl create mode 100644 lib/wx/src/gen/wxToolbook.erl create mode 100644 lib/wx/src/gen/wxTopLevelWindow.erl create mode 100644 lib/wx/src/gen/wxTreeCtrl.erl create mode 100644 lib/wx/src/gen/wxTreeEvent.erl create mode 100644 lib/wx/src/gen/wxTreebook.erl create mode 100644 lib/wx/src/gen/wxUpdateUIEvent.erl create mode 100644 lib/wx/src/gen/wxWindow.erl create mode 100644 lib/wx/src/gen/wxWindowCreateEvent.erl create mode 100644 lib/wx/src/gen/wxWindowDC.erl create mode 100644 lib/wx/src/gen/wxWindowDestroyEvent.erl create mode 100644 lib/wx/src/gen/wxXmlResource.erl create mode 100644 lib/wx/src/gen/wx_misc.erl create mode 100644 lib/wx/src/gen/wxe_debug.hrl create mode 100644 lib/wx/src/gen/wxe_funcs.hrl (limited to 'lib/wx/src/gen') 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 www.opengl.org +%% +%% 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 external documentation. +accum(Op,Value) -> + wxe_util:cast(5037, <>). + +%% @spec (Func::enum(),Ref::clamp()) -> ok +%% @doc See external documentation. +alphaFunc(Func,Ref) -> + wxe_util:cast(5038, <>). + +%% @spec (Textures::[integer()]) -> {0|1,Residences::[0|1]} +%% @doc See external documentation. +areTexturesResident(Textures) -> + wxe_util:call(5039, <<(length(Textures)):?GLuint, + (<< <> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>). + +%% @spec (I::integer()) -> ok +%% @doc See external documentation. +arrayElement(I) -> + wxe_util:cast(5040, <>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +'begin'(Mode) -> + wxe_util:cast(5041, <>). + +%% @spec (Target::enum(),Texture::integer()) -> ok +%% @doc See external documentation. +bindTexture(Target,Texture) -> + wxe_util:cast(5042, <>). + +%% @spec (Width::integer(),Height::integer(),Xorig::float(),Yorig::float(),Xmove::float(),Ymove::float(),Bitmap::offset()|binary()) -> ok +%% @doc See external documentation. +bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) when is_integer(Bitmap) -> + wxe_util:cast(5043, <>); +bitmap(Width,Height,Xorig,Yorig,Xmove,Ymove,Bitmap) -> + wxe_util:send_bin(Bitmap), + wxe_util:cast(5044, <>). + +%% @spec (Sfactor::enum(),Dfactor::enum()) -> ok +%% @doc See external documentation. +blendFunc(Sfactor,Dfactor) -> + wxe_util:cast(5045, <>). + +%% @spec (List::integer()) -> ok +%% @doc See external documentation. +callList(List) -> + wxe_util:cast(5046, <>). + +%% @spec (Lists::[integer()]) -> ok +%% @doc See external documentation. +callLists(Lists) -> + wxe_util:cast(5047, <<(length(Lists)):?GLuint, + (<< <> || C <- Lists>>)/binary,0:(((1+length(Lists)) rem 2)*32)>>). + +%% @spec (Mask::integer()) -> ok +%% @doc See external documentation. +clear(Mask) -> + wxe_util:cast(5048, <>). + +%% @spec (Red::float(),Green::float(),Blue::float(),Alpha::float()) -> ok +%% @doc See external documentation. +clearAccum(Red,Green,Blue,Alpha) -> + wxe_util:cast(5049, <>). + +%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok +%% @doc See external documentation. +clearColor(Red,Green,Blue,Alpha) -> + wxe_util:cast(5050, <>). + +%% @spec (Depth::clamp()) -> ok +%% @doc See external documentation. +clearDepth(Depth) -> + wxe_util:cast(5051, <>). + +%% @spec (C::float()) -> ok +%% @doc See external documentation. +clearIndex(C) -> + wxe_util:cast(5052, <>). + +%% @spec (S::integer()) -> ok +%% @doc See external documentation. +clearStencil(S) -> + wxe_util:cast(5053, <>). + +%% @spec (Plane::enum(),Equation::{float()}) -> ok +%% @doc See external documentation. +clipPlane(Plane,{E1,E2,E3,E4}) -> + wxe_util:cast(5054, <>). + +%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok +%% @doc See external documentation. +color3b(Red,Green,Blue) -> + wxe_util:cast(5055, <>). + +%% @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 external documentation. +color3d(Red,Green,Blue) -> + wxe_util:cast(5056, <>). + +%% @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 external documentation. +color3f(Red,Green,Blue) -> + wxe_util:cast(5057, <>). + +%% @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 external documentation. +color3i(Red,Green,Blue) -> + wxe_util:cast(5058, <>). + +%% @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 external documentation. +color3s(Red,Green,Blue) -> + wxe_util:cast(5059, <>). + +%% @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 external documentation. +color3ub(Red,Green,Blue) -> + wxe_util:cast(5060, <>). + +%% @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 external documentation. +color3ui(Red,Green,Blue) -> + wxe_util:cast(5061, <>). + +%% @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 external documentation. +color3us(Red,Green,Blue) -> + wxe_util:cast(5062, <>). + +%% @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 external documentation. +color4b(Red,Green,Blue,Alpha) -> + wxe_util:cast(5063, <>). + +%% @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 external documentation. +color4d(Red,Green,Blue,Alpha) -> + wxe_util:cast(5064, <>). + +%% @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 external documentation. +color4f(Red,Green,Blue,Alpha) -> + wxe_util:cast(5065, <>). + +%% @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 external documentation. +color4i(Red,Green,Blue,Alpha) -> + wxe_util:cast(5066, <>). + +%% @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 external documentation. +color4s(Red,Green,Blue,Alpha) -> + wxe_util:cast(5067, <>). + +%% @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 external documentation. +color4ub(Red,Green,Blue,Alpha) -> + wxe_util:cast(5068, <>). + +%% @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 external documentation. +color4ui(Red,Green,Blue,Alpha) -> + wxe_util:cast(5069, <>). + +%% @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 external documentation. +color4us(Red,Green,Blue,Alpha) -> + wxe_util:cast(5070, <>). + +%% @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 external documentation. +colorMask(Red,Green,Blue,Alpha) -> + wxe_util:cast(5071, <>). + +%% @spec (Face::enum(),Mode::enum()) -> ok +%% @doc See external documentation. +colorMaterial(Face,Mode) -> + wxe_util:cast(5072, <>). + +%% @spec (Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +colorPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5073, <>); +colorPointer(Size,Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5074, <>). + +%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Type::enum()) -> ok +%% @doc See external documentation. +copyPixels(X,Y,Width,Height,Type) -> + wxe_util:cast(5075, <>). + +%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Border::integer()) -> ok +%% @doc See external documentation. +copyTexImage1D(Target,Level,InternalFormat,X,Y,Width,Border) -> + wxe_util:cast(5076, <>). + +%% @spec (Target::enum(),Level::integer(),InternalFormat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer(),Border::integer()) -> ok +%% @doc See external documentation. +copyTexImage2D(Target,Level,InternalFormat,X,Y,Width,Height,Border) -> + wxe_util:cast(5077, <>). + +%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),X::integer(),Y::integer(),Width::integer()) -> ok +%% @doc See external documentation. +copyTexSubImage1D(Target,Level,Xoffset,X,Y,Width) -> + wxe_util:cast(5078, <>). + +%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +copyTexSubImage2D(Target,Level,Xoffset,Yoffset,X,Y,Width,Height) -> + wxe_util:cast(5079, <>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +cullFace(Mode) -> + wxe_util:cast(5080, <>). + +%% @spec (List::integer(),Range::integer()) -> ok +%% @doc See external documentation. +deleteLists(List,Range) -> + wxe_util:cast(5081, <>). + +%% @spec (Textures::[integer()]) -> ok +%% @doc See external documentation. +deleteTextures(Textures) -> + wxe_util:cast(5082, <<(length(Textures)):?GLuint, + (<< <> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32)>>). + +%% @spec (Func::enum()) -> ok +%% @doc See external documentation. +depthFunc(Func) -> + wxe_util:cast(5083, <>). + +%% @spec (Flag::0|1) -> ok +%% @doc See external documentation. +depthMask(Flag) -> + wxe_util:cast(5084, <>). + +%% @spec (ZNear::clamp(),ZFar::clamp()) -> ok +%% @doc See external documentation. +depthRange(ZNear,ZFar) -> + wxe_util:cast(5085, <>). + +%% @spec (Cap::enum()) -> ok +%% @doc See external documentation. +disable(Cap) -> + wxe_util:cast(5086, <>). + +%% @spec (Array::enum()) -> ok +%% @doc See external documentation. +disableClientState(Array) -> + wxe_util:cast(5087, <>). + +%% @spec (Mode::enum(),First::integer(),Count::integer()) -> ok +%% @doc See external documentation. +drawArrays(Mode,First,Count) -> + wxe_util:cast(5088, <>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +drawBuffer(Mode) -> + wxe_util:cast(5089, <>). + +%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok +%% @doc See external documentation. +drawElements(Mode,Count,Type,Indices) when is_integer(Indices) -> + wxe_util:cast(5090, <>); +drawElements(Mode,Count,Type,Indices) -> + wxe_util:send_bin(Indices), + wxe_util:cast(5091, <>). + +%% @spec (Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok +%% @doc See external documentation. +drawPixels(Width,Height,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5092, <>); +drawPixels(Width,Height,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5093, <>). + +%% @spec (Flag::0|1) -> ok +%% @doc See external documentation. +edgeFlag(Flag) -> + wxe_util:cast(5094, <>). + +%% @spec (Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +edgeFlagPointer(Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5095, <>); +edgeFlagPointer(Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5096, <>). + +%% @spec ({Flag}) -> ok +%% @equiv edgeFlag(Flag) +edgeFlagv({Flag}) -> edgeFlag(Flag). + +%% @spec (Cap::enum()) -> ok +%% @doc See external documentation. +enable(Cap) -> + wxe_util:cast(5097, <>). + +%% @spec (Array::enum()) -> ok +%% @doc See external documentation. +enableClientState(Array) -> + wxe_util:cast(5098, <>). + +%% @spec () -> ok +%% @doc See external documentation. +'end'() -> + wxe_util:cast(5099, <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +endList() -> + wxe_util:cast(5100, <<>>). + +%% @spec (U::float()) -> ok +%% @doc See external documentation. +evalCoord1d(U) -> + wxe_util:cast(5101, <>). + +%% @spec ({U}) -> ok +%% @equiv evalCoord1d(U) +evalCoord1dv({U}) -> evalCoord1d(U). + +%% @spec (U::float()) -> ok +%% @doc See external documentation. +evalCoord1f(U) -> + wxe_util:cast(5102, <>). + +%% @spec ({U}) -> ok +%% @equiv evalCoord1f(U) +evalCoord1fv({U}) -> evalCoord1f(U). + +%% @spec (U::float(),V::float()) -> ok +%% @doc See external documentation. +evalCoord2d(U,V) -> + wxe_util:cast(5103, <>). + +%% @spec ({U,V}) -> ok +%% @equiv evalCoord2d(U,V) +evalCoord2dv({U,V}) -> evalCoord2d(U,V). + +%% @spec (U::float(),V::float()) -> ok +%% @doc See external documentation. +evalCoord2f(U,V) -> + wxe_util:cast(5104, <>). + +%% @spec ({U,V}) -> ok +%% @equiv evalCoord2f(U,V) +evalCoord2fv({U,V}) -> evalCoord2f(U,V). + +%% @spec (Mode::enum(),I1::integer(),I2::integer()) -> ok +%% @doc See external documentation. +evalMesh1(Mode,I1,I2) -> + wxe_util:cast(5105, <>). + +%% @spec (Mode::enum(),I1::integer(),I2::integer(),J1::integer(),J2::integer()) -> ok +%% @doc See external documentation. +evalMesh2(Mode,I1,I2,J1,J2) -> + wxe_util:cast(5106, <>). + +%% @spec (I::integer()) -> ok +%% @doc See external documentation. +evalPoint1(I) -> + wxe_util:cast(5107, <>). + +%% @spec (I::integer(),J::integer()) -> ok +%% @doc See external documentation. +evalPoint2(I,J) -> + wxe_util:cast(5108, <>). + +%% @spec (Size::integer(),Type::enum(),Buffer::wx:wx_mem()) -> ok +%% @doc See external documentation. +feedbackBuffer(Size,Type,Buffer) -> + wxe_util:send_bin(Buffer#wx_mem.bin), + wxe_util:call(5109, <>). + +%% @spec () -> ok +%% @doc See external documentation. +finish() -> + wxe_util:cast(5110, <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +flush() -> + wxe_util:cast(5111, <<>>). + +%% @spec (Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +fogf(Pname,Param) -> + wxe_util:cast(5112, <>). + +%% @spec (Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +fogfv(Pname,Params) -> + wxe_util:cast(5113, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>). + +%% @spec (Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +fogi(Pname,Param) -> + wxe_util:cast(5114, <>). + +%% @spec (Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +fogiv(Pname,Params) -> + wxe_util:cast(5115, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +frontFace(Mode) -> + wxe_util:cast(5116, <>). + +%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok +%% @doc See external documentation. +frustum(Left,Right,Bottom,Top,ZNear,ZFar) -> + wxe_util:cast(5117, <>). + +%% @spec (Range::integer()) -> integer() +%% @doc See external documentation. +genLists(Range) -> + wxe_util:call(5118, <>). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genTextures(N) -> + wxe_util:call(5119, <>). + +%% @spec (Pname::enum()) -> [0|1] +%% @doc See external documentation. +getBooleanv(Pname) -> + wxe_util:call(5120, <>). + +%% @spec (Plane::enum()) -> {float()} +%% @doc See external documentation. +getClipPlane(Plane) -> + wxe_util:call(5121, <>). + +%% @spec (Pname::enum()) -> [float()] +%% @doc See external documentation. +getDoublev(Pname) -> + wxe_util:call(5122, <>). + +%% @spec () -> enum() +%% @doc See external documentation. +getError() -> + wxe_util:call(5123, <<>>). + +%% @spec (Pname::enum()) -> [float()] +%% @doc See external documentation. +getFloatv(Pname) -> + wxe_util:call(5124, <>). + +%% @spec (Pname::enum()) -> [integer()] +%% @doc See external documentation. +getIntegerv(Pname) -> + wxe_util:call(5125, <>). + +%% @spec (Light::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getLightfv(Light,Pname) -> + wxe_util:call(5126, <>). + +%% @spec (Light::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getLightiv(Light,Pname) -> + wxe_util:call(5127, <>). + +%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok +%% @doc See external documentation. +getMapdv(Target,Query,V) -> + wxe_util:send_bin(V#wx_mem.bin), + wxe_util:call(5128, <>). + +%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok +%% @doc See external documentation. +getMapfv(Target,Query,V) -> + wxe_util:send_bin(V#wx_mem.bin), + wxe_util:call(5129, <>). + +%% @spec (Target::enum(),Query::enum(),V::wx:wx_mem()) -> ok +%% @doc See external documentation. +getMapiv(Target,Query,V) -> + wxe_util:send_bin(V#wx_mem.bin), + wxe_util:call(5130, <>). + +%% @spec (Face::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getMaterialfv(Face,Pname) -> + wxe_util:call(5131, <>). + +%% @spec (Face::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getMaterialiv(Face,Pname) -> + wxe_util:call(5132, <>). + +%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok +%% @doc See external documentation. +getPixelMapfv(Map,Values) -> + wxe_util:send_bin(Values#wx_mem.bin), + wxe_util:call(5133, <>). + +%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok +%% @doc See external documentation. +getPixelMapuiv(Map,Values) -> + wxe_util:send_bin(Values#wx_mem.bin), + wxe_util:call(5134, <>). + +%% @spec (Map::enum(),Values::wx:wx_mem()) -> ok +%% @doc See external documentation. +getPixelMapusv(Map,Values) -> + wxe_util:send_bin(Values#wx_mem.bin), + wxe_util:call(5135, <>). + +%% @spec () -> binary() +%% @doc See external documentation. +getPolygonStipple() -> + wxe_util:call(5136, <<>>). + +%% @spec (Name::enum()) -> string() +%% @doc See external documentation. +getString(Name) -> + wxe_util:call(5137, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getTexEnvfv(Target,Pname) -> + wxe_util:call(5138, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getTexEnviv(Target,Pname) -> + wxe_util:call(5139, <>). + +%% @spec (Coord::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getTexGendv(Coord,Pname) -> + wxe_util:call(5140, <>). + +%% @spec (Coord::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getTexGenfv(Coord,Pname) -> + wxe_util:call(5141, <>). + +%% @spec (Coord::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getTexGeniv(Coord,Pname) -> + wxe_util:call(5142, <>). + +%% @spec (Target::enum(),Level::integer(),Format::enum(),Type::enum(),Pixels::wx:wx_mem()) -> ok +%% @doc See external documentation. +getTexImage(Target,Level,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels#wx_mem.bin), + wxe_util:call(5143, <>). + +%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getTexLevelParameterfv(Target,Level,Pname) -> + wxe_util:call(5144, <>). + +%% @spec (Target::enum(),Level::integer(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getTexLevelParameteriv(Target,Level,Pname) -> + wxe_util:call(5145, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getTexParameterfv(Target,Pname) -> + wxe_util:call(5146, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getTexParameteriv(Target,Pname) -> + wxe_util:call(5147, <>). + +%% @spec (Target::enum(),Mode::enum()) -> ok +%% @doc See external documentation. +hint(Target,Mode) -> + wxe_util:cast(5148, <>). + +%% @spec (Mask::integer()) -> ok +%% @doc See external documentation. +indexMask(Mask) -> + wxe_util:cast(5149, <>). + +%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +indexPointer(Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5150, <>); +indexPointer(Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5151, <>). + +%% @spec (C::float()) -> ok +%% @doc See external documentation. +indexd(C) -> + wxe_util:cast(5152, <>). + +%% @spec ({C}) -> ok +%% @equiv indexd(C) +indexdv({C}) -> indexd(C). + +%% @spec (C::float()) -> ok +%% @doc See external documentation. +indexf(C) -> + wxe_util:cast(5153, <>). + +%% @spec ({C}) -> ok +%% @equiv indexf(C) +indexfv({C}) -> indexf(C). + +%% @spec (C::integer()) -> ok +%% @doc See external documentation. +indexi(C) -> + wxe_util:cast(5154, <>). + +%% @spec ({C}) -> ok +%% @equiv indexi(C) +indexiv({C}) -> indexi(C). + +%% @spec (C::integer()) -> ok +%% @doc See external documentation. +indexs(C) -> + wxe_util:cast(5155, <>). + +%% @spec ({C}) -> ok +%% @equiv indexs(C) +indexsv({C}) -> indexs(C). + +%% @spec (C::integer()) -> ok +%% @doc See external documentation. +indexub(C) -> + wxe_util:cast(5156, <>). + +%% @spec ({C}) -> ok +%% @equiv indexub(C) +indexubv({C}) -> indexub(C). + +%% @spec () -> ok +%% @doc See external documentation. +initNames() -> + wxe_util:cast(5157, <<>>). + +%% @spec (Format::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +interleavedArrays(Format,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5158, <>); +interleavedArrays(Format,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5159, <>). + +%% @spec (Cap::enum()) -> 0|1 +%% @doc See external documentation. +isEnabled(Cap) -> + wxe_util:call(5160, <>). + +%% @spec (List::integer()) -> 0|1 +%% @doc See external documentation. +isList(List) -> + wxe_util:call(5161, <>). + +%% @spec (Texture::integer()) -> 0|1 +%% @doc See external documentation. +isTexture(Texture) -> + wxe_util:call(5162, <>). + +%% @spec (Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +lightModelf(Pname,Param) -> + wxe_util:cast(5163, <>). + +%% @spec (Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +lightModelfv(Pname,Params) -> + wxe_util:cast(5164, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>). + +%% @spec (Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +lightModeli(Pname,Param) -> + wxe_util:cast(5165, <>). + +%% @spec (Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +lightModeliv(Pname,Params) -> + wxe_util:cast(5166, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>). + +%% @spec (Light::enum(),Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +lightf(Light,Pname,Param) -> + wxe_util:cast(5167, <>). + +%% @spec (Light::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +lightfv(Light,Pname,Params) -> + wxe_util:cast(5168, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Light::enum(),Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +lighti(Light,Pname,Param) -> + wxe_util:cast(5169, <>). + +%% @spec (Light::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +lightiv(Light,Pname,Params) -> + wxe_util:cast(5170, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Factor::integer(),Pattern::integer()) -> ok +%% @doc See external documentation. +lineStipple(Factor,Pattern) -> + wxe_util:cast(5171, <>). + +%% @spec (Width::float()) -> ok +%% @doc See external documentation. +lineWidth(Width) -> + wxe_util:cast(5172, <>). + +%% @spec (Base::integer()) -> ok +%% @doc See external documentation. +listBase(Base) -> + wxe_util:cast(5173, <>). + +%% @spec () -> ok +%% @doc See external documentation. +loadIdentity() -> + wxe_util:cast(5174, <<>>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5175, <>); +loadMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5175, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5176, <>); +loadMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5176, <>). + +%% @spec (Name::integer()) -> ok +%% @doc See external documentation. +loadName(Name) -> + wxe_util:cast(5177, <>). + +%% @spec (Opcode::enum()) -> ok +%% @doc See external documentation. +logicOp(Opcode) -> + wxe_util:cast(5178, <>). + +%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok +%% @doc See external documentation. +map1d(Target,U1,U2,Stride,Order,Points) -> + wxe_util:send_bin(Points), + wxe_util:cast(5179, <>). + +%% @spec (Target::enum(),U1::float(),U2::float(),Stride::integer(),Order::integer(),Points::binary()) -> ok +%% @doc See external documentation. +map1f(Target,U1,U2,Stride,Order,Points) -> + wxe_util:send_bin(Points), + wxe_util:cast(5180, <>). + +%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok +%% @doc See external documentation. +map2d(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) -> + wxe_util:send_bin(Points), + wxe_util:cast(5181, <>). + +%% @spec (Target::enum(),U1::float(),U2::float(),Ustride::integer(),Uorder::integer(),V1::float(),V2::float(),Vstride::integer(),Vorder::integer(),Points::binary()) -> ok +%% @doc See external documentation. +map2f(Target,U1,U2,Ustride,Uorder,V1,V2,Vstride,Vorder,Points) -> + wxe_util:send_bin(Points), + wxe_util:cast(5182, <>). + +%% @spec (Un::integer(),U1::float(),U2::float()) -> ok +%% @doc See external documentation. +mapGrid1d(Un,U1,U2) -> + wxe_util:cast(5183, <>). + +%% @spec (Un::integer(),U1::float(),U2::float()) -> ok +%% @doc See external documentation. +mapGrid1f(Un,U1,U2) -> + wxe_util:cast(5184, <>). + +%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok +%% @doc See external documentation. +mapGrid2d(Un,U1,U2,Vn,V1,V2) -> + wxe_util:cast(5185, <>). + +%% @spec (Un::integer(),U1::float(),U2::float(),Vn::integer(),V1::float(),V2::float()) -> ok +%% @doc See external documentation. +mapGrid2f(Un,U1,U2,Vn,V1,V2) -> + wxe_util:cast(5186, <>). + +%% @spec (Face::enum(),Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +materialf(Face,Pname,Param) -> + wxe_util:cast(5187, <>). + +%% @spec (Face::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +materialfv(Face,Pname,Params) -> + wxe_util:cast(5188, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Face::enum(),Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +materiali(Face,Pname,Param) -> + wxe_util:cast(5189, <>). + +%% @spec (Face::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +materialiv(Face,Pname,Params) -> + wxe_util:cast(5190, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +matrixMode(Mode) -> + wxe_util:cast(5191, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5192, <>); +multMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5192, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5193, <>); +multMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5193, <>). + +%% @spec (List::integer(),Mode::enum()) -> ok +%% @doc See external documentation. +newList(List,Mode) -> + wxe_util:cast(5194, <>). + +%% @spec (Nx::integer(),Ny::integer(),Nz::integer()) -> ok +%% @doc See external documentation. +normal3b(Nx,Ny,Nz) -> + wxe_util:cast(5195, <>). + +%% @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 external documentation. +normal3d(Nx,Ny,Nz) -> + wxe_util:cast(5196, <>). + +%% @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 external documentation. +normal3f(Nx,Ny,Nz) -> + wxe_util:cast(5197, <>). + +%% @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 external documentation. +normal3i(Nx,Ny,Nz) -> + wxe_util:cast(5198, <>). + +%% @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 external documentation. +normal3s(Nx,Ny,Nz) -> + wxe_util:cast(5199, <>). + +%% @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 external documentation. +normalPointer(Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5200, <>); +normalPointer(Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5201, <>). + +%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float(),ZNear::float(),ZFar::float()) -> ok +%% @doc See external documentation. +ortho(Left,Right,Bottom,Top,ZNear,ZFar) -> + wxe_util:cast(5202, <>). + +%% @spec (Token::float()) -> ok +%% @doc See external documentation. +passThrough(Token) -> + wxe_util:cast(5203, <>). + +%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok +%% @doc See external documentation. +pixelMapfv(Map,Mapsize,Values) -> + wxe_util:send_bin(Values), + wxe_util:cast(5204, <>). + +%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok +%% @doc See external documentation. +pixelMapuiv(Map,Mapsize,Values) -> + wxe_util:send_bin(Values), + wxe_util:cast(5205, <>). + +%% @spec (Map::enum(),Mapsize::integer(),Values::binary()) -> ok +%% @doc See external documentation. +pixelMapusv(Map,Mapsize,Values) -> + wxe_util:send_bin(Values), + wxe_util:cast(5206, <>). + +%% @spec (Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +pixelStoref(Pname,Param) -> + wxe_util:cast(5207, <>). + +%% @spec (Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +pixelStorei(Pname,Param) -> + wxe_util:cast(5208, <>). + +%% @spec (Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +pixelTransferf(Pname,Param) -> + wxe_util:cast(5209, <>). + +%% @spec (Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +pixelTransferi(Pname,Param) -> + wxe_util:cast(5210, <>). + +%% @spec (Xfactor::float(),Yfactor::float()) -> ok +%% @doc See external documentation. +pixelZoom(Xfactor,Yfactor) -> + wxe_util:cast(5211, <>). + +%% @spec (Size::float()) -> ok +%% @doc See external documentation. +pointSize(Size) -> + wxe_util:cast(5212, <>). + +%% @spec (Face::enum(),Mode::enum()) -> ok +%% @doc See external documentation. +polygonMode(Face,Mode) -> + wxe_util:cast(5213, <>). + +%% @spec (Factor::float(),Units::float()) -> ok +%% @doc See external documentation. +polygonOffset(Factor,Units) -> + wxe_util:cast(5214, <>). + +%% @spec (Mask::binary()) -> ok +%% @doc See external documentation. +polygonStipple(Mask) -> + wxe_util:send_bin(Mask), + wxe_util:cast(5215, <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +popAttrib() -> + wxe_util:cast(5216, <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +popClientAttrib() -> + wxe_util:cast(5217, <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +popMatrix() -> + wxe_util:cast(5218, <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +popName() -> + wxe_util:cast(5219, <<>>). + +%% @spec (Textures::[integer()],Priorities::[clamp()]) -> ok +%% @doc See external documentation. +prioritizeTextures(Textures,Priorities) -> + wxe_util:cast(5220, <<(length(Textures)):?GLuint, + (<< <> || C <- Textures>>)/binary,0:(((1+length(Textures)) rem 2)*32),(length(Priorities)):?GLuint, + (<< <> || C <- Priorities>>)/binary,0:(((1+length(Priorities)) rem 2)*32)>>). + +%% @spec (Mask::integer()) -> ok +%% @doc See external documentation. +pushAttrib(Mask) -> + wxe_util:cast(5221, <>). + +%% @spec (Mask::integer()) -> ok +%% @doc See external documentation. +pushClientAttrib(Mask) -> + wxe_util:cast(5222, <>). + +%% @spec () -> ok +%% @doc See external documentation. +pushMatrix() -> + wxe_util:cast(5223, <<>>). + +%% @spec (Name::integer()) -> ok +%% @doc See external documentation. +pushName(Name) -> + wxe_util:cast(5224, <>). + +%% @spec (X::float(),Y::float()) -> ok +%% @doc See external documentation. +rasterPos2d(X,Y) -> + wxe_util:cast(5225, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv rasterPos2d(X,Y) +rasterPos2dv({X,Y}) -> rasterPos2d(X,Y). + +%% @spec (X::float(),Y::float()) -> ok +%% @doc See external documentation. +rasterPos2f(X,Y) -> + wxe_util:cast(5226, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv rasterPos2f(X,Y) +rasterPos2fv({X,Y}) -> rasterPos2f(X,Y). + +%% @spec (X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +rasterPos2i(X,Y) -> + wxe_util:cast(5227, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv rasterPos2i(X,Y) +rasterPos2iv({X,Y}) -> rasterPos2i(X,Y). + +%% @spec (X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +rasterPos2s(X,Y) -> + wxe_util:cast(5228, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv rasterPos2s(X,Y) +rasterPos2sv({X,Y}) -> rasterPos2s(X,Y). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +rasterPos3d(X,Y,Z) -> + wxe_util:cast(5229, <>). + +%% @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 external documentation. +rasterPos3f(X,Y,Z) -> + wxe_util:cast(5230, <>). + +%% @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 external documentation. +rasterPos3i(X,Y,Z) -> + wxe_util:cast(5231, <>). + +%% @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 external documentation. +rasterPos3s(X,Y,Z) -> + wxe_util:cast(5232, <>). + +%% @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 external documentation. +rasterPos4d(X,Y,Z,W) -> + wxe_util:cast(5233, <>). + +%% @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 external documentation. +rasterPos4f(X,Y,Z,W) -> + wxe_util:cast(5234, <>). + +%% @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 external documentation. +rasterPos4i(X,Y,Z,W) -> + wxe_util:cast(5235, <>). + +%% @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 external documentation. +rasterPos4s(X,Y,Z,W) -> + wxe_util:cast(5236, <>). + +%% @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 external documentation. +readBuffer(Mode) -> + wxe_util:cast(5237, <>). + +%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::wx:wx_mem()) -> ok +%% @doc See external documentation. +readPixels(X,Y,Width,Height,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels#wx_mem.bin), + wxe_util:call(5238, <>). + +%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok +%% @doc See external documentation. +rectd(X1,Y1,X2,Y2) -> + wxe_util:cast(5239, <>). + +%% @spec (V1::{float()},V2::{float()}) -> ok +%% @doc See external documentation. +rectdv({V1,V2},{V1,V2}) -> + wxe_util:cast(5240, <>). + +%% @spec (X1::float(),Y1::float(),X2::float(),Y2::float()) -> ok +%% @doc See external documentation. +rectf(X1,Y1,X2,Y2) -> + wxe_util:cast(5241, <>). + +%% @spec (V1::{float()},V2::{float()}) -> ok +%% @doc See external documentation. +rectfv({V1,V2},{V1,V2}) -> + wxe_util:cast(5242, <>). + +%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok +%% @doc See external documentation. +recti(X1,Y1,X2,Y2) -> + wxe_util:cast(5243, <>). + +%% @spec (V1::{integer()},V2::{integer()}) -> ok +%% @doc See external documentation. +rectiv({V1,V2},{V1,V2}) -> + wxe_util:cast(5244, <>). + +%% @spec (X1::integer(),Y1::integer(),X2::integer(),Y2::integer()) -> ok +%% @doc See external documentation. +rects(X1,Y1,X2,Y2) -> + wxe_util:cast(5245, <>). + +%% @spec (V1::{integer()},V2::{integer()}) -> ok +%% @doc See external documentation. +rectsv({V1,V2},{V1,V2}) -> + wxe_util:cast(5246, <>). + +%% @spec (Mode::enum()) -> integer() +%% @doc See external documentation. +renderMode(Mode) -> + wxe_util:call(5247, <>). + +%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +rotated(Angle,X,Y,Z) -> + wxe_util:cast(5248, <>). + +%% @spec (Angle::float(),X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +rotatef(Angle,X,Y,Z) -> + wxe_util:cast(5249, <>). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +scaled(X,Y,Z) -> + wxe_util:cast(5250, <>). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +scalef(X,Y,Z) -> + wxe_util:cast(5251, <>). + +%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +scissor(X,Y,Width,Height) -> + wxe_util:cast(5252, <>). + +%% @spec (Size::integer(),Buffer::wx:wx_mem()) -> ok +%% @doc See external documentation. +selectBuffer(Size,Buffer) -> + wxe_util:send_bin(Buffer#wx_mem.bin), + wxe_util:call(5253, <>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +shadeModel(Mode) -> + wxe_util:cast(5254, <>). + +%% @spec (Func::enum(),Ref::integer(),Mask::integer()) -> ok +%% @doc See external documentation. +stencilFunc(Func,Ref,Mask) -> + wxe_util:cast(5255, <>). + +%% @spec (Mask::integer()) -> ok +%% @doc See external documentation. +stencilMask(Mask) -> + wxe_util:cast(5256, <>). + +%% @spec (Fail::enum(),Zfail::enum(),Zpass::enum()) -> ok +%% @doc See external documentation. +stencilOp(Fail,Zfail,Zpass) -> + wxe_util:cast(5257, <>). + +%% @spec (S::float()) -> ok +%% @doc See external documentation. +texCoord1d(S) -> + wxe_util:cast(5258, <>). + +%% @spec ({S}) -> ok +%% @equiv texCoord1d(S) +texCoord1dv({S}) -> texCoord1d(S). + +%% @spec (S::float()) -> ok +%% @doc See external documentation. +texCoord1f(S) -> + wxe_util:cast(5259, <>). + +%% @spec ({S}) -> ok +%% @equiv texCoord1f(S) +texCoord1fv({S}) -> texCoord1f(S). + +%% @spec (S::integer()) -> ok +%% @doc See external documentation. +texCoord1i(S) -> + wxe_util:cast(5260, <>). + +%% @spec ({S}) -> ok +%% @equiv texCoord1i(S) +texCoord1iv({S}) -> texCoord1i(S). + +%% @spec (S::integer()) -> ok +%% @doc See external documentation. +texCoord1s(S) -> + wxe_util:cast(5261, <>). + +%% @spec ({S}) -> ok +%% @equiv texCoord1s(S) +texCoord1sv({S}) -> texCoord1s(S). + +%% @spec (S::float(),T::float()) -> ok +%% @doc See external documentation. +texCoord2d(S,T) -> + wxe_util:cast(5262, <>). + +%% @spec ({S,T}) -> ok +%% @equiv texCoord2d(S,T) +texCoord2dv({S,T}) -> texCoord2d(S,T). + +%% @spec (S::float(),T::float()) -> ok +%% @doc See external documentation. +texCoord2f(S,T) -> + wxe_util:cast(5263, <>). + +%% @spec ({S,T}) -> ok +%% @equiv texCoord2f(S,T) +texCoord2fv({S,T}) -> texCoord2f(S,T). + +%% @spec (S::integer(),T::integer()) -> ok +%% @doc See external documentation. +texCoord2i(S,T) -> + wxe_util:cast(5264, <>). + +%% @spec ({S,T}) -> ok +%% @equiv texCoord2i(S,T) +texCoord2iv({S,T}) -> texCoord2i(S,T). + +%% @spec (S::integer(),T::integer()) -> ok +%% @doc See external documentation. +texCoord2s(S,T) -> + wxe_util:cast(5265, <>). + +%% @spec ({S,T}) -> ok +%% @equiv texCoord2s(S,T) +texCoord2sv({S,T}) -> texCoord2s(S,T). + +%% @spec (S::float(),T::float(),R::float()) -> ok +%% @doc See external documentation. +texCoord3d(S,T,R) -> + wxe_util:cast(5266, <>). + +%% @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 external documentation. +texCoord3f(S,T,R) -> + wxe_util:cast(5267, <>). + +%% @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 external documentation. +texCoord3i(S,T,R) -> + wxe_util:cast(5268, <>). + +%% @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 external documentation. +texCoord3s(S,T,R) -> + wxe_util:cast(5269, <>). + +%% @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 external documentation. +texCoord4d(S,T,R,Q) -> + wxe_util:cast(5270, <>). + +%% @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 external documentation. +texCoord4f(S,T,R,Q) -> + wxe_util:cast(5271, <>). + +%% @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 external documentation. +texCoord4i(S,T,R,Q) -> + wxe_util:cast(5272, <>). + +%% @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 external documentation. +texCoord4s(S,T,R,Q) -> + wxe_util:cast(5273, <>). + +%% @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 external documentation. +texCoordPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5274, <>); +texCoordPointer(Size,Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5275, <>). + +%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +texEnvf(Target,Pname,Param) -> + wxe_util:cast(5276, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +texEnvfv(Target,Pname,Params) -> + wxe_util:cast(5277, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +texEnvi(Target,Pname,Param) -> + wxe_util:cast(5278, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +texEnviv(Target,Pname,Params) -> + wxe_util:cast(5279, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +texGend(Coord,Pname,Param) -> + wxe_util:cast(5280, <>). + +%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +texGendv(Coord,Pname,Params) -> + wxe_util:cast(5281, <> ||C <- tuple_to_list(Params)>>)/binary>>). + +%% @spec (Coord::enum(),Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +texGenf(Coord,Pname,Param) -> + wxe_util:cast(5282, <>). + +%% @spec (Coord::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +texGenfv(Coord,Pname,Params) -> + wxe_util:cast(5283, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Coord::enum(),Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +texGeni(Coord,Pname,Param) -> + wxe_util:cast(5284, <>). + +%% @spec (Coord::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +texGeniv(Coord,Pname,Params) -> + wxe_util:cast(5285, <> ||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 external documentation. +texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5286, <>); +texImage1D(Target,Level,Internalformat,Width,Border,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5287, <>). + +%% @spec (Target::enum(),Level::integer(),Internalformat::integer(),Width::integer(),Height::integer(),Border::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok +%% @doc See external documentation. +texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5288, <>); +texImage2D(Target,Level,Internalformat,Width,Height,Border,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5289, <>). + +%% @spec (Target::enum(),Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +texParameterf(Target,Pname,Param) -> + wxe_util:cast(5290, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +texParameterfv(Target,Pname,Params) -> + wxe_util:cast(5291, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Target::enum(),Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +texParameteri(Target,Pname,Param) -> + wxe_util:cast(5292, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +texParameteriv(Target,Pname,Params) -> + wxe_util:cast(5293, <> ||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 external documentation. +texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5294, <>); +texSubImage1D(Target,Level,Xoffset,Width,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5295, <>). + +%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Pixels::offset()|binary()) -> ok +%% @doc See external documentation. +texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5296, <>); +texSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5297, <>). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +translated(X,Y,Z) -> + wxe_util:cast(5298, <>). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +translatef(X,Y,Z) -> + wxe_util:cast(5299, <>). + +%% @spec (X::float(),Y::float()) -> ok +%% @doc See external documentation. +vertex2d(X,Y) -> + wxe_util:cast(5300, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv vertex2d(X,Y) +vertex2dv({X,Y}) -> vertex2d(X,Y). + +%% @spec (X::float(),Y::float()) -> ok +%% @doc See external documentation. +vertex2f(X,Y) -> + wxe_util:cast(5301, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv vertex2f(X,Y) +vertex2fv({X,Y}) -> vertex2f(X,Y). + +%% @spec (X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +vertex2i(X,Y) -> + wxe_util:cast(5302, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv vertex2i(X,Y) +vertex2iv({X,Y}) -> vertex2i(X,Y). + +%% @spec (X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +vertex2s(X,Y) -> + wxe_util:cast(5303, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv vertex2s(X,Y) +vertex2sv({X,Y}) -> vertex2s(X,Y). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +vertex3d(X,Y,Z) -> + wxe_util:cast(5304, <>). + +%% @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 external documentation. +vertex3f(X,Y,Z) -> + wxe_util:cast(5305, <>). + +%% @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 external documentation. +vertex3i(X,Y,Z) -> + wxe_util:cast(5306, <>). + +%% @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 external documentation. +vertex3s(X,Y,Z) -> + wxe_util:cast(5307, <>). + +%% @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 external documentation. +vertex4d(X,Y,Z,W) -> + wxe_util:cast(5308, <>). + +%% @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 external documentation. +vertex4f(X,Y,Z,W) -> + wxe_util:cast(5309, <>). + +%% @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 external documentation. +vertex4i(X,Y,Z,W) -> + wxe_util:cast(5310, <>). + +%% @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 external documentation. +vertex4s(X,Y,Z,W) -> + wxe_util:cast(5311, <>). + +%% @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 external documentation. +vertexPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5312, <>); +vertexPointer(Size,Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5313, <>). + +%% @spec (X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +viewport(X,Y,Width,Height) -> + wxe_util:cast(5314, <>). + +%% @spec (Red::clamp(),Green::clamp(),Blue::clamp(),Alpha::clamp()) -> ok +%% @doc See external documentation. +blendColor(Red,Green,Blue,Alpha) -> + wxe_util:cast(5315, <>). + +%% @spec (Mode::enum()) -> ok +%% @doc See external documentation. +blendEquation(Mode) -> + wxe_util:cast(5316, <>). + +%% @spec (Mode::enum(),Start::integer(),End::integer(),Count::integer(),Type::enum(),Indices::offset()|binary()) -> ok +%% @doc See external documentation. +drawRangeElements(Mode,Start,End,Count,Type,Indices) when is_integer(Indices) -> + wxe_util:cast(5317, <>); +drawRangeElements(Mode,Start,End,Count,Type,Indices) -> + wxe_util:send_bin(Indices), + wxe_util:cast(5318, <>). + +%% @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 external documentation. +texImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5319, <>); +texImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5320, <>). + +%% @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 external documentation. +texSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,Type,Pixels) when is_integer(Pixels) -> + wxe_util:cast(5321, <>); +texSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,Type,Pixels) -> + wxe_util:send_bin(Pixels), + wxe_util:cast(5322, <>). + +%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Zoffset::integer(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +copyTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,X,Y,Width,Height) -> + wxe_util:cast(5323, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Table::offset()|binary()) -> ok +%% @doc See external documentation. +colorTable(Target,Internalformat,Width,Format,Type,Table) when is_integer(Table) -> + wxe_util:cast(5324, <>); +colorTable(Target,Internalformat,Width,Format,Type,Table) -> + wxe_util:send_bin(Table), + wxe_util:cast(5325, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +colorTableParameterfv(Target,Pname,{P1,P2,P3,P4}) -> + wxe_util:cast(5326, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +colorTableParameteriv(Target,Pname,{P1,P2,P3,P4}) -> + wxe_util:cast(5327, <>). + +%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer()) -> ok +%% @doc See external documentation. +copyColorTable(Target,Internalformat,X,Y,Width) -> + wxe_util:cast(5328, <>). + +%% @spec (Target::enum(),Format::enum(),Type::enum(),Table::wx:wx_mem()) -> ok +%% @doc See external documentation. +getColorTable(Target,Format,Type,Table) -> + wxe_util:send_bin(Table#wx_mem.bin), + wxe_util:call(5329, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getColorTableParameterfv(Target,Pname) -> + wxe_util:call(5330, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getColorTableParameteriv(Target,Pname) -> + wxe_util:call(5331, <>). + +%% @spec (Target::enum(),Start::integer(),Count::integer(),Format::enum(),Type::enum(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +colorSubTable(Target,Start,Count,Format,Type,Data) when is_integer(Data) -> + wxe_util:cast(5332, <>); +colorSubTable(Target,Start,Count,Format,Type,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5333, <>). + +%% @spec (Target::enum(),Start::integer(),X::integer(),Y::integer(),Width::integer()) -> ok +%% @doc See external documentation. +copyColorSubTable(Target,Start,X,Y,Width) -> + wxe_util:cast(5334, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Format::enum(),Type::enum(),Image::offset()|binary()) -> ok +%% @doc See external documentation. +convolutionFilter1D(Target,Internalformat,Width,Format,Type,Image) when is_integer(Image) -> + wxe_util:cast(5335, <>); +convolutionFilter1D(Target,Internalformat,Width,Format,Type,Image) -> + wxe_util:send_bin(Image), + wxe_util:cast(5336, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Image::offset()|binary()) -> ok +%% @doc See external documentation. +convolutionFilter2D(Target,Internalformat,Width,Height,Format,Type,Image) when is_integer(Image) -> + wxe_util:cast(5337, <>); +convolutionFilter2D(Target,Internalformat,Width,Height,Format,Type,Image) -> + wxe_util:send_bin(Image), + wxe_util:cast(5338, <>). + +%% @spec (Target::enum(),Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +convolutionParameterf(Target,Pname,Params) -> + wxe_util:cast(5339, <> ||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 external documentation. +convolutionParameteri(Target,Pname,Params) -> + wxe_util:cast(5340, <> ||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 external documentation. +copyConvolutionFilter1D(Target,Internalformat,X,Y,Width) -> + wxe_util:cast(5341, <>). + +%% @spec (Target::enum(),Internalformat::enum(),X::integer(),Y::integer(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +copyConvolutionFilter2D(Target,Internalformat,X,Y,Width,Height) -> + wxe_util:cast(5342, <>). + +%% @spec (Target::enum(),Format::enum(),Type::enum(),Image::wx:wx_mem()) -> ok +%% @doc See external documentation. +getConvolutionFilter(Target,Format,Type,Image) -> + wxe_util:send_bin(Image#wx_mem.bin), + wxe_util:call(5343, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getConvolutionParameterfv(Target,Pname) -> + wxe_util:call(5344, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getConvolutionParameteriv(Target,Pname) -> + wxe_util:call(5345, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Row::offset()|binary(),Column::offset()|binary()) -> ok +%% @doc See external documentation. +separableFilter2D(Target,Internalformat,Width,Height,Format,Type,Row,Column) when is_integer(Row), is_integer(Column) -> + wxe_util:cast(5346, <>); +separableFilter2D(Target,Internalformat,Width,Height,Format,Type,Row,Column) -> + wxe_util:send_bin(Row), + wxe_util:send_bin(Column), + wxe_util:cast(5347, <>). + +%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::wx:wx_mem()) -> ok +%% @doc See external documentation. +getHistogram(Target,Reset,Format,Type,Values) -> + wxe_util:send_bin(Values#wx_mem.bin), + wxe_util:call(5348, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getHistogramParameterfv(Target,Pname) -> + wxe_util:call(5349, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getHistogramParameteriv(Target,Pname) -> + wxe_util:call(5350, <>). + +%% @spec (Target::enum(),Reset::0|1,Format::enum(),Type::enum(),Values::wx:wx_mem()) -> ok +%% @doc See external documentation. +getMinmax(Target,Reset,Format,Type,Values) -> + wxe_util:send_bin(Values#wx_mem.bin), + wxe_util:call(5351, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getMinmaxParameterfv(Target,Pname) -> + wxe_util:call(5352, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getMinmaxParameteriv(Target,Pname) -> + wxe_util:call(5353, <>). + +%% @spec (Target::enum(),Width::integer(),Internalformat::enum(),Sink::0|1) -> ok +%% @doc See external documentation. +histogram(Target,Width,Internalformat,Sink) -> + wxe_util:cast(5354, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Sink::0|1) -> ok +%% @doc See external documentation. +minmax(Target,Internalformat,Sink) -> + wxe_util:cast(5355, <>). + +%% @spec (Target::enum()) -> ok +%% @doc See external documentation. +resetHistogram(Target) -> + wxe_util:cast(5356, <>). + +%% @spec (Target::enum()) -> ok +%% @doc See external documentation. +resetMinmax(Target) -> + wxe_util:cast(5357, <>). + +%% @spec (Texture::enum()) -> ok +%% @doc See external documentation. +activeTexture(Texture) -> + wxe_util:cast(5358, <>). + +%% @spec (Value::clamp(),Invert::0|1) -> ok +%% @doc See external documentation. +sampleCoverage(Value,Invert) -> + wxe_util:cast(5359, <>). + +%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Depth::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +compressedTexImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,ImageSize,Data) when is_integer(Data) -> + wxe_util:cast(5360, <>); +compressedTexImage3D(Target,Level,Internalformat,Width,Height,Depth,Border,ImageSize,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5361, <>). + +%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Height::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +compressedTexImage2D(Target,Level,Internalformat,Width,Height,Border,ImageSize,Data) when is_integer(Data) -> + wxe_util:cast(5362, <>); +compressedTexImage2D(Target,Level,Internalformat,Width,Height,Border,ImageSize,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5363, <>). + +%% @spec (Target::enum(),Level::integer(),Internalformat::enum(),Width::integer(),Border::integer(),ImageSize::integer(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +compressedTexImage1D(Target,Level,Internalformat,Width,Border,ImageSize,Data) when is_integer(Data) -> + wxe_util:cast(5364, <>); +compressedTexImage1D(Target,Level,Internalformat,Width,Border,ImageSize,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5365, <>). + +%% @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 external documentation. +compressedTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,ImageSize,Data) when is_integer(Data) -> + wxe_util:cast(5366, <>); +compressedTexSubImage3D(Target,Level,Xoffset,Yoffset,Zoffset,Width,Height,Depth,Format,ImageSize,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5367, <>). + +%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Yoffset::integer(),Width::integer(),Height::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +compressedTexSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,ImageSize,Data) when is_integer(Data) -> + wxe_util:cast(5368, <>); +compressedTexSubImage2D(Target,Level,Xoffset,Yoffset,Width,Height,Format,ImageSize,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5369, <>). + +%% @spec (Target::enum(),Level::integer(),Xoffset::integer(),Width::integer(),Format::enum(),ImageSize::integer(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +compressedTexSubImage1D(Target,Level,Xoffset,Width,Format,ImageSize,Data) when is_integer(Data) -> + wxe_util:cast(5370, <>); +compressedTexSubImage1D(Target,Level,Xoffset,Width,Format,ImageSize,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5371, <>). + +%% @spec (Target::enum(),Level::integer(),Img::wx:wx_mem()) -> ok +%% @doc See external documentation. +getCompressedTexImage(Target,Level,Img) -> + wxe_util:send_bin(Img#wx_mem.bin), + wxe_util:call(5372, <>). + +%% @spec (Texture::enum()) -> ok +%% @doc See external documentation. +clientActiveTexture(Texture) -> + wxe_util:cast(5373, <>). + +%% @spec (Target::enum(),S::float()) -> ok +%% @doc See external documentation. +multiTexCoord1d(Target,S) -> + wxe_util:cast(5374, <>). + +%% @spec (Target,{S}) -> ok +%% @equiv multiTexCoord1d(Target,S) +multiTexCoord1dv(Target,{S}) -> multiTexCoord1d(Target,S). + +%% @spec (Target::enum(),S::float()) -> ok +%% @doc See external documentation. +multiTexCoord1f(Target,S) -> + wxe_util:cast(5375, <>). + +%% @spec (Target,{S}) -> ok +%% @equiv multiTexCoord1f(Target,S) +multiTexCoord1fv(Target,{S}) -> multiTexCoord1f(Target,S). + +%% @spec (Target::enum(),S::integer()) -> ok +%% @doc See external documentation. +multiTexCoord1i(Target,S) -> + wxe_util:cast(5376, <>). + +%% @spec (Target,{S}) -> ok +%% @equiv multiTexCoord1i(Target,S) +multiTexCoord1iv(Target,{S}) -> multiTexCoord1i(Target,S). + +%% @spec (Target::enum(),S::integer()) -> ok +%% @doc See external documentation. +multiTexCoord1s(Target,S) -> + wxe_util:cast(5377, <>). + +%% @spec (Target,{S}) -> ok +%% @equiv multiTexCoord1s(Target,S) +multiTexCoord1sv(Target,{S}) -> multiTexCoord1s(Target,S). + +%% @spec (Target::enum(),S::float(),T::float()) -> ok +%% @doc See external documentation. +multiTexCoord2d(Target,S,T) -> + wxe_util:cast(5378, <>). + +%% @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 external documentation. +multiTexCoord2f(Target,S,T) -> + wxe_util:cast(5379, <>). + +%% @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 external documentation. +multiTexCoord2i(Target,S,T) -> + wxe_util:cast(5380, <>). + +%% @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 external documentation. +multiTexCoord2s(Target,S,T) -> + wxe_util:cast(5381, <>). + +%% @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 external documentation. +multiTexCoord3d(Target,S,T,R) -> + wxe_util:cast(5382, <>). + +%% @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 external documentation. +multiTexCoord3f(Target,S,T,R) -> + wxe_util:cast(5383, <>). + +%% @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 external documentation. +multiTexCoord3i(Target,S,T,R) -> + wxe_util:cast(5384, <>). + +%% @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 external documentation. +multiTexCoord3s(Target,S,T,R) -> + wxe_util:cast(5385, <>). + +%% @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 external documentation. +multiTexCoord4d(Target,S,T,R,Q) -> + wxe_util:cast(5386, <>). + +%% @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 external documentation. +multiTexCoord4f(Target,S,T,R,Q) -> + wxe_util:cast(5387, <>). + +%% @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 external documentation. +multiTexCoord4i(Target,S,T,R,Q) -> + wxe_util:cast(5388, <>). + +%% @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 external documentation. +multiTexCoord4s(Target,S,T,R,Q) -> + wxe_util:cast(5389, <>). + +%% @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 external documentation. +loadTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5390, <>); +loadTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5390, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +loadTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5391, <>); +loadTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5391, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +multTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5392, <>); +multTransposeMatrixf({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5392, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +multTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5393, <>); +multTransposeMatrixd({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5393, <>). + +%% @spec (SfactorRGB::enum(),DfactorRGB::enum(),SfactorAlpha::enum(),DfactorAlpha::enum()) -> ok +%% @doc See external documentation. +blendFuncSeparate(SfactorRGB,DfactorRGB,SfactorAlpha,DfactorAlpha) -> + wxe_util:cast(5394, <>). + +%% @spec (Mode::enum(),First::[integer()],Count::[integer()]) -> ok +%% @doc See external documentation. +multiDrawArrays(Mode,First,Count) -> + wxe_util:cast(5395, <> || C <- First>>)/binary,0:(((length(First)) rem 2)*32),(length(Count)):?GLuint, + (<< <> || C <- Count>>)/binary,0:(((1+length(Count)) rem 2)*32)>>). + +%% @spec (Pname::enum(),Param::float()) -> ok +%% @doc See external documentation. +pointParameterf(Pname,Param) -> + wxe_util:cast(5396, <>). + +%% @spec (Pname::enum(),Params::{float()}) -> ok +%% @doc See external documentation. +pointParameterfv(Pname,Params) -> + wxe_util:cast(5397, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>). + +%% @spec (Pname::enum(),Param::integer()) -> ok +%% @doc See external documentation. +pointParameteri(Pname,Param) -> + wxe_util:cast(5398, <>). + +%% @spec (Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +pointParameteriv(Pname,Params) -> + wxe_util:cast(5399, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((0+size(Params)) rem 2)*32)>>). + +%% @spec (Coord::float()) -> ok +%% @doc See external documentation. +fogCoordf(Coord) -> + wxe_util:cast(5400, <>). + +%% @spec ({Coord}) -> ok +%% @equiv fogCoordf(Coord) +fogCoordfv({Coord}) -> fogCoordf(Coord). + +%% @spec (Coord::float()) -> ok +%% @doc See external documentation. +fogCoordd(Coord) -> + wxe_util:cast(5401, <>). + +%% @spec ({Coord}) -> ok +%% @equiv fogCoordd(Coord) +fogCoorddv({Coord}) -> fogCoordd(Coord). + +%% @spec (Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +fogCoordPointer(Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5402, <>); +fogCoordPointer(Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5403, <>). + +%% @spec (Red::integer(),Green::integer(),Blue::integer()) -> ok +%% @doc See external documentation. +secondaryColor3b(Red,Green,Blue) -> + wxe_util:cast(5404, <>). + +%% @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 external documentation. +secondaryColor3d(Red,Green,Blue) -> + wxe_util:cast(5405, <>). + +%% @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 external documentation. +secondaryColor3f(Red,Green,Blue) -> + wxe_util:cast(5406, <>). + +%% @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 external documentation. +secondaryColor3i(Red,Green,Blue) -> + wxe_util:cast(5407, <>). + +%% @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 external documentation. +secondaryColor3s(Red,Green,Blue) -> + wxe_util:cast(5408, <>). + +%% @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 external documentation. +secondaryColor3ub(Red,Green,Blue) -> + wxe_util:cast(5409, <>). + +%% @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 external documentation. +secondaryColor3ui(Red,Green,Blue) -> + wxe_util:cast(5410, <>). + +%% @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 external documentation. +secondaryColor3us(Red,Green,Blue) -> + wxe_util:cast(5411, <>). + +%% @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 external documentation. +secondaryColorPointer(Size,Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5412, <>); +secondaryColorPointer(Size,Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5413, <>). + +%% @spec (X::float(),Y::float()) -> ok +%% @doc See external documentation. +windowPos2d(X,Y) -> + wxe_util:cast(5414, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv windowPos2d(X,Y) +windowPos2dv({X,Y}) -> windowPos2d(X,Y). + +%% @spec (X::float(),Y::float()) -> ok +%% @doc See external documentation. +windowPos2f(X,Y) -> + wxe_util:cast(5415, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv windowPos2f(X,Y) +windowPos2fv({X,Y}) -> windowPos2f(X,Y). + +%% @spec (X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +windowPos2i(X,Y) -> + wxe_util:cast(5416, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv windowPos2i(X,Y) +windowPos2iv({X,Y}) -> windowPos2i(X,Y). + +%% @spec (X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +windowPos2s(X,Y) -> + wxe_util:cast(5417, <>). + +%% @spec ({X,Y}) -> ok +%% @equiv windowPos2s(X,Y) +windowPos2sv({X,Y}) -> windowPos2s(X,Y). + +%% @spec (X::float(),Y::float(),Z::float()) -> ok +%% @doc See external documentation. +windowPos3d(X,Y,Z) -> + wxe_util:cast(5418, <>). + +%% @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 external documentation. +windowPos3f(X,Y,Z) -> + wxe_util:cast(5419, <>). + +%% @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 external documentation. +windowPos3i(X,Y,Z) -> + wxe_util:cast(5420, <>). + +%% @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 external documentation. +windowPos3s(X,Y,Z) -> + wxe_util:cast(5421, <>). + +%% @spec ({X,Y,Z}) -> ok +%% @equiv windowPos3s(X,Y,Z) +windowPos3sv({X,Y,Z}) -> windowPos3s(X,Y,Z). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genQueries(N) -> + wxe_util:call(5422, <>). + +%% @spec (Ids::[integer()]) -> ok +%% @doc See external documentation. +deleteQueries(Ids) -> + wxe_util:cast(5423, <<(length(Ids)):?GLuint, + (<< <> || C <- Ids>>)/binary,0:(((1+length(Ids)) rem 2)*32)>>). + +%% @spec (Id::integer()) -> 0|1 +%% @doc See external documentation. +isQuery(Id) -> + wxe_util:call(5424, <>). + +%% @spec (Target::enum(),Id::integer()) -> ok +%% @doc See external documentation. +beginQuery(Target,Id) -> + wxe_util:cast(5425, <>). + +%% @spec (Target::enum()) -> ok +%% @doc See external documentation. +endQuery(Target) -> + wxe_util:cast(5426, <>). + +%% @spec (Target::enum(),Pname::enum()) -> integer() +%% @doc See external documentation. +getQueryiv(Target,Pname) -> + wxe_util:call(5427, <>). + +%% @spec (Id::integer(),Pname::enum()) -> integer() +%% @doc See external documentation. +getQueryObjectiv(Id,Pname) -> + wxe_util:call(5428, <>). + +%% @spec (Id::integer(),Pname::enum()) -> integer() +%% @doc See external documentation. +getQueryObjectuiv(Id,Pname) -> + wxe_util:call(5429, <>). + +%% @spec (Target::enum(),Buffer::integer()) -> ok +%% @doc See external documentation. +bindBuffer(Target,Buffer) -> + wxe_util:cast(5430, <>). + +%% @spec (Buffers::[integer()]) -> ok +%% @doc See external documentation. +deleteBuffers(Buffers) -> + wxe_util:cast(5431, <<(length(Buffers)):?GLuint, + (<< <> || C <- Buffers>>)/binary,0:(((1+length(Buffers)) rem 2)*32)>>). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genBuffers(N) -> + wxe_util:call(5432, <>). + +%% @spec (Buffer::integer()) -> 0|1 +%% @doc See external documentation. +isBuffer(Buffer) -> + wxe_util:call(5433, <>). + +%% @spec (Target::enum(),Size::integer(),Data::offset()|binary(),Usage::enum()) -> ok +%% @doc See external documentation. +bufferData(Target,Size,Data,Usage) when is_integer(Data) -> + wxe_util:cast(5434, <>); +bufferData(Target,Size,Data,Usage) -> + wxe_util:send_bin(Data), + wxe_util:cast(5435, <>). + +%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::offset()|binary()) -> ok +%% @doc See external documentation. +bufferSubData(Target,Offset,Size,Data) when is_integer(Data) -> + wxe_util:cast(5436, <>); +bufferSubData(Target,Offset,Size,Data) -> + wxe_util:send_bin(Data), + wxe_util:cast(5437, <>). + +%% @spec (Target::enum(),Offset::integer(),Size::integer(),Data::wx:wx_mem()) -> ok +%% @doc See external documentation. +getBufferSubData(Target,Offset,Size,Data) -> + wxe_util:send_bin(Data#wx_mem.bin), + wxe_util:call(5438, <>). + +%% @spec (Target::enum(),Pname::enum()) -> integer() +%% @doc See external documentation. +getBufferParameteriv(Target,Pname) -> + wxe_util:call(5439, <>). + +%% @spec (ModeRGB::enum(),ModeAlpha::enum()) -> ok +%% @doc See external documentation. +blendEquationSeparate(ModeRGB,ModeAlpha) -> + wxe_util:cast(5440, <>). + +%% @spec (Bufs::[enum()]) -> ok +%% @doc See external documentation. +drawBuffers(Bufs) -> + wxe_util:cast(5441, <<(length(Bufs)):?GLuint, + (<< <> || C <- Bufs>>)/binary,0:(((1+length(Bufs)) rem 2)*32)>>). + +%% @spec (Face::enum(),Sfail::enum(),Dpfail::enum(),Dppass::enum()) -> ok +%% @doc See external documentation. +stencilOpSeparate(Face,Sfail,Dpfail,Dppass) -> + wxe_util:cast(5442, <>). + +%% @spec (Frontfunc::enum(),Backfunc::enum(),Ref::integer(),Mask::integer()) -> ok +%% @doc See external documentation. +stencilFuncSeparate(Frontfunc,Backfunc,Ref,Mask) -> + wxe_util:cast(5443, <>). + +%% @spec (Face::enum(),Mask::integer()) -> ok +%% @doc See external documentation. +stencilMaskSeparate(Face,Mask) -> + wxe_util:cast(5444, <>). + +%% @spec (Program::integer(),Shader::integer()) -> ok +%% @doc See external documentation. +attachShader(Program,Shader) -> + wxe_util:cast(5445, <>). + +%% @spec (Program::integer(),Index::integer(),Name::string()) -> ok +%% @doc See external documentation. +bindAttribLocation(Program,Index,Name) -> + wxe_util:cast(5446, <>). + +%% @spec (Shader::integer()) -> ok +%% @doc See external documentation. +compileShader(Shader) -> + wxe_util:cast(5447, <>). + +%% @spec () -> integer() +%% @doc See external documentation. +createProgram() -> + wxe_util:call(5448, <<>>). + +%% @spec (Type::enum()) -> integer() +%% @doc See external documentation. +createShader(Type) -> + wxe_util:call(5449, <>). + +%% @spec (Program::integer()) -> ok +%% @doc See external documentation. +deleteProgram(Program) -> + wxe_util:cast(5450, <>). + +%% @spec (Shader::integer()) -> ok +%% @doc See external documentation. +deleteShader(Shader) -> + wxe_util:cast(5451, <>). + +%% @spec (Program::integer(),Shader::integer()) -> ok +%% @doc See external documentation. +detachShader(Program,Shader) -> + wxe_util:cast(5452, <>). + +%% @spec (Index::integer()) -> ok +%% @doc See external documentation. +disableVertexAttribArray(Index) -> + wxe_util:cast(5453, <>). + +%% @spec (Index::integer()) -> ok +%% @doc See external documentation. +enableVertexAttribArray(Index) -> + wxe_util:cast(5454, <>). + +%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()} +%% @doc See external documentation. +getActiveAttrib(Program,Index,BufSize) -> + wxe_util:call(5455, <>). + +%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()} +%% @doc See external documentation. +getActiveUniform(Program,Index,BufSize) -> + wxe_util:call(5456, <>). + +%% @spec (Program::integer(),MaxCount::integer()) -> [integer()] +%% @doc See external documentation. +getAttachedShaders(Program,MaxCount) -> + wxe_util:call(5457, <>). + +%% @spec (Program::integer(),Name::string()) -> integer() +%% @doc See external documentation. +getAttribLocation(Program,Name) -> + wxe_util:call(5458, <>). + +%% @spec (Program::integer(),Pname::enum()) -> integer() +%% @doc See external documentation. +getProgramiv(Program,Pname) -> + wxe_util:call(5459, <>). + +%% @spec (Program::integer(),BufSize::integer()) -> string() +%% @doc See external documentation. +getProgramInfoLog(Program,BufSize) -> + wxe_util:call(5460, <>). + +%% @spec (Shader::integer(),Pname::enum()) -> integer() +%% @doc See external documentation. +getShaderiv(Shader,Pname) -> + wxe_util:call(5461, <>). + +%% @spec (Shader::integer(),BufSize::integer()) -> string() +%% @doc See external documentation. +getShaderInfoLog(Shader,BufSize) -> + wxe_util:call(5462, <>). + +%% @spec (Shader::integer(),BufSize::integer()) -> string() +%% @doc See external documentation. +getShaderSource(Shader,BufSize) -> + wxe_util:call(5463, <>). + +%% @spec (Program::integer(),Name::string()) -> integer() +%% @doc See external documentation. +getUniformLocation(Program,Name) -> + wxe_util:call(5464, <>). + +%% @spec (Program::integer(),Location::integer()) -> {float()} +%% @doc See external documentation. +getUniformfv(Program,Location) -> + wxe_util:call(5465, <>). + +%% @spec (Program::integer(),Location::integer()) -> {integer()} +%% @doc See external documentation. +getUniformiv(Program,Location) -> + wxe_util:call(5466, <>). + +%% @spec (Index::integer(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getVertexAttribdv(Index,Pname) -> + wxe_util:call(5467, <>). + +%% @spec (Index::integer(),Pname::enum()) -> {float()} +%% @doc See external documentation. +getVertexAttribfv(Index,Pname) -> + wxe_util:call(5468, <>). + +%% @spec (Index::integer(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getVertexAttribiv(Index,Pname) -> + wxe_util:call(5469, <>). + +%% @spec (Program::integer()) -> 0|1 +%% @doc See external documentation. +isProgram(Program) -> + wxe_util:call(5470, <>). + +%% @spec (Shader::integer()) -> 0|1 +%% @doc See external documentation. +isShader(Shader) -> + wxe_util:call(5471, <>). + +%% @spec (Program::integer()) -> ok +%% @doc See external documentation. +linkProgram(Program) -> + wxe_util:cast(5472, <>). + +%% @spec (Shader::integer(),String::[string()]) -> ok +%% @doc See external documentation. +shaderSource(Shader,String) -> + StringTemp = list_to_binary([[Str|[0]] || Str <- String ]), + wxe_util:cast(5473, <>). + +%% @spec (Program::integer()) -> ok +%% @doc See external documentation. +useProgram(Program) -> + wxe_util:cast(5474, <>). + +%% @spec (Location::integer(),V0::float()) -> ok +%% @doc See external documentation. +uniform1f(Location,V0) -> + wxe_util:cast(5475, <>). + +%% @spec (Location::integer(),V0::float(),V1::float()) -> ok +%% @doc See external documentation. +uniform2f(Location,V0,V1) -> + wxe_util:cast(5476, <>). + +%% @spec (Location::integer(),V0::float(),V1::float(),V2::float()) -> ok +%% @doc See external documentation. +uniform3f(Location,V0,V1,V2) -> + wxe_util:cast(5477, <>). + +%% @spec (Location::integer(),V0::float(),V1::float(),V2::float(),V3::float()) -> ok +%% @doc See external documentation. +uniform4f(Location,V0,V1,V2,V3) -> + wxe_util:cast(5478, <>). + +%% @spec (Location::integer(),V0::integer()) -> ok +%% @doc See external documentation. +uniform1i(Location,V0) -> + wxe_util:cast(5479, <>). + +%% @spec (Location::integer(),V0::integer(),V1::integer()) -> ok +%% @doc See external documentation. +uniform2i(Location,V0,V1) -> + wxe_util:cast(5480, <>). + +%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok +%% @doc See external documentation. +uniform3i(Location,V0,V1,V2) -> + wxe_util:cast(5481, <>). + +%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok +%% @doc See external documentation. +uniform4i(Location,V0,V1,V2,V3) -> + wxe_util:cast(5482, <>). + +%% @spec (Location::integer(),Value::[float()]) -> ok +%% @doc See external documentation. +uniform1fv(Location,Value) -> + wxe_util:cast(5483, <> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>). + +%% @spec (Location::integer(),Value::[{float()}]) -> ok +%% @doc See external documentation. +uniform2fv(Location,Value) -> + wxe_util:cast(5484, <> || {V1,V2} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[{float()}]) -> ok +%% @doc See external documentation. +uniform3fv(Location,Value) -> + wxe_util:cast(5485, <> || {V1,V2,V3} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[{float()}]) -> ok +%% @doc See external documentation. +uniform4fv(Location,Value) -> + wxe_util:cast(5486, <> || {V1,V2,V3,V4} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[integer()]) -> ok +%% @doc See external documentation. +uniform1iv(Location,Value) -> + wxe_util:cast(5487, <> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>). + +%% @spec (Location::integer(),Value::[{integer()}]) -> ok +%% @doc See external documentation. +uniform2iv(Location,Value) -> + wxe_util:cast(5488, <> || {V1,V2} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[{integer()}]) -> ok +%% @doc See external documentation. +uniform3iv(Location,Value) -> + wxe_util:cast(5489, <> || {V1,V2,V3} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[{integer()}]) -> ok +%% @doc See external documentation. +uniform4iv(Location,Value) -> + wxe_util:cast(5490, <> || {V1,V2,V3,V4} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix2fv(Location,Transpose,Value) -> + wxe_util:cast(5491, <> || {V1,V2,V3,V4} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix3fv(Location,Transpose,Value) -> + wxe_util:cast(5492, <> || {V1,V2,V3,V4,V5,V6,V7,V8,V9} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix4fv(Location,Transpose,Value) -> + wxe_util:cast(5493, <> || {V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16} <- Value>>)/binary>>). + +%% @spec (Program::integer()) -> ok +%% @doc See external documentation. +validateProgram(Program) -> + wxe_util:cast(5494, <>). + +%% @spec (Index::integer(),X::float()) -> ok +%% @doc See external documentation. +vertexAttrib1d(Index,X) -> + wxe_util:cast(5495, <>). + +%% @spec (Index,{X}) -> ok +%% @equiv vertexAttrib1d(Index,X) +vertexAttrib1dv(Index,{X}) -> vertexAttrib1d(Index,X). + +%% @spec (Index::integer(),X::float()) -> ok +%% @doc See external documentation. +vertexAttrib1f(Index,X) -> + wxe_util:cast(5496, <>). + +%% @spec (Index,{X}) -> ok +%% @equiv vertexAttrib1f(Index,X) +vertexAttrib1fv(Index,{X}) -> vertexAttrib1f(Index,X). + +%% @spec (Index::integer(),X::integer()) -> ok +%% @doc See external documentation. +vertexAttrib1s(Index,X) -> + wxe_util:cast(5497, <>). + +%% @spec (Index,{X}) -> ok +%% @equiv vertexAttrib1s(Index,X) +vertexAttrib1sv(Index,{X}) -> vertexAttrib1s(Index,X). + +%% @spec (Index::integer(),X::float(),Y::float()) -> ok +%% @doc See external documentation. +vertexAttrib2d(Index,X,Y) -> + wxe_util:cast(5498, <>). + +%% @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 external documentation. +vertexAttrib2f(Index,X,Y) -> + wxe_util:cast(5499, <>). + +%% @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 external documentation. +vertexAttrib2s(Index,X,Y) -> + wxe_util:cast(5500, <>). + +%% @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 external documentation. +vertexAttrib3d(Index,X,Y,Z) -> + wxe_util:cast(5501, <>). + +%% @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 external documentation. +vertexAttrib3f(Index,X,Y,Z) -> + wxe_util:cast(5502, <>). + +%% @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 external documentation. +vertexAttrib3s(Index,X,Y,Z) -> + wxe_util:cast(5503, <>). + +%% @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 external documentation. +vertexAttrib4Nbv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5504, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttrib4Niv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5505, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttrib4Nsv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5506, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok +%% @doc See external documentation. +vertexAttrib4Nub(Index,X,Y,Z,W) -> + wxe_util:cast(5507, <>). + +%% @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 external documentation. +vertexAttrib4Nuiv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5508, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttrib4Nusv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5509, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttrib4bv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5510, <>). + +%% @spec (Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok +%% @doc See external documentation. +vertexAttrib4d(Index,X,Y,Z,W) -> + wxe_util:cast(5511, <>). + +%% @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 external documentation. +vertexAttrib4f(Index,X,Y,Z,W) -> + wxe_util:cast(5512, <>). + +%% @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 external documentation. +vertexAttrib4iv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5513, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok +%% @doc See external documentation. +vertexAttrib4s(Index,X,Y,Z,W) -> + wxe_util:cast(5514, <>). + +%% @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 external documentation. +vertexAttrib4ubv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5515, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttrib4uiv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5516, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttrib4usv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5517, <>). + +%% @spec (Index::integer(),Size::integer(),Type::enum(),Normalized::0|1,Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +vertexAttribPointer(Index,Size,Type,Normalized,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5518, <>); +vertexAttribPointer(Index,Size,Type,Normalized,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5519, <>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix2x3fv(Location,Transpose,Value) -> + wxe_util:cast(5520, <> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix3x2fv(Location,Transpose,Value) -> + wxe_util:cast(5521, <> || {V1,V2,V3,V4,V5,V6} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix2x4fv(Location,Transpose,Value) -> + wxe_util:cast(5522, <> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix4x2fv(Location,Transpose,Value) -> + wxe_util:cast(5523, <> || {V1,V2,V3,V4,V5,V6,V7,V8} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Transpose::0|1,Value::[{float()}]) -> ok +%% @doc See external documentation. +uniformMatrix3x4fv(Location,Transpose,Value) -> + wxe_util:cast(5524, <> || {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 external documentation. +uniformMatrix4x3fv(Location,Transpose,Value) -> + wxe_util:cast(5525, <> || {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 external documentation. +colorMaski(Index,R,G,B,A) -> + wxe_util:cast(5526, <>). + +%% @spec (Target::enum(),Index::integer()) -> [0|1] +%% @doc See external documentation. +getBooleani_v(Target,Index) -> + wxe_util:call(5527, <>). + +%% @spec (Target::enum(),Index::integer()) -> [integer()] +%% @doc See external documentation. +getIntegeri_v(Target,Index) -> + wxe_util:call(5528, <>). + +%% @spec (Target::enum(),Index::integer()) -> ok +%% @doc See external documentation. +enablei(Target,Index) -> + wxe_util:cast(5529, <>). + +%% @spec (Target::enum(),Index::integer()) -> ok +%% @doc See external documentation. +disablei(Target,Index) -> + wxe_util:cast(5530, <>). + +%% @spec (Target::enum(),Index::integer()) -> 0|1 +%% @doc See external documentation. +isEnabledi(Target,Index) -> + wxe_util:call(5531, <>). + +%% @spec (PrimitiveMode::enum()) -> ok +%% @doc See external documentation. +beginTransformFeedback(PrimitiveMode) -> + wxe_util:cast(5532, <>). + +%% @spec () -> ok +%% @doc See external documentation. +endTransformFeedback() -> + wxe_util:cast(5533, <<>>). + +%% @spec (Target::enum(),Index::integer(),Buffer::integer(),Offset::integer(),Size::integer()) -> ok +%% @doc See external documentation. +bindBufferRange(Target,Index,Buffer,Offset,Size) -> + wxe_util:cast(5534, <>). + +%% @spec (Target::enum(),Index::integer(),Buffer::integer()) -> ok +%% @doc See external documentation. +bindBufferBase(Target,Index,Buffer) -> + wxe_util:cast(5535, <>). + +%% @spec (Program::integer(),Varyings::[string()],BufferMode::enum()) -> ok +%% @doc See external documentation. +transformFeedbackVaryings(Program,Varyings,BufferMode) -> + VaryingsTemp = list_to_binary([[Str|[0]] || Str <- Varyings ]), + wxe_util:cast(5536, <>). + +%% @spec (Program::integer(),Index::integer(),BufSize::integer()) -> {Size::integer(),Type::enum(),Name::string()} +%% @doc See external documentation. +getTransformFeedbackVarying(Program,Index,BufSize) -> + wxe_util:call(5537, <>). + +%% @spec (Target::enum(),Clamp::enum()) -> ok +%% @doc See external documentation. +clampColor(Target,Clamp) -> + wxe_util:cast(5538, <>). + +%% @spec (Id::integer(),Mode::enum()) -> ok +%% @doc See external documentation. +beginConditionalRender(Id,Mode) -> + wxe_util:cast(5539, <>). + +%% @spec () -> ok +%% @doc See external documentation. +endConditionalRender() -> + wxe_util:cast(5540, <<>>). + +%% @spec (Index::integer(),Size::integer(),Type::enum(),Stride::integer(),Pointer::offset()|binary()) -> ok +%% @doc See external documentation. +vertexAttribIPointer(Index,Size,Type,Stride,Pointer) when is_integer(Pointer) -> + wxe_util:cast(5541, <>); +vertexAttribIPointer(Index,Size,Type,Stride,Pointer) -> + wxe_util:send_bin(Pointer), + wxe_util:cast(5542, <>). + +%% @spec (Index::integer(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getVertexAttribIiv(Index,Pname) -> + wxe_util:call(5543, <>). + +%% @spec (Index::integer(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getVertexAttribIuiv(Index,Pname) -> + wxe_util:call(5544, <>). + +%% @spec (Program::integer(),Location::integer()) -> {integer()} +%% @doc See external documentation. +getUniformuiv(Program,Location) -> + wxe_util:call(5545, <>). + +%% @spec (Program::integer(),Color::integer(),Name::string()) -> ok +%% @doc See external documentation. +bindFragDataLocation(Program,Color,Name) -> + wxe_util:cast(5546, <>). + +%% @spec (Program::integer(),Name::string()) -> integer() +%% @doc See external documentation. +getFragDataLocation(Program,Name) -> + wxe_util:call(5547, <>). + +%% @spec (Location::integer(),V0::integer()) -> ok +%% @doc See external documentation. +uniform1ui(Location,V0) -> + wxe_util:cast(5548, <>). + +%% @spec (Location::integer(),V0::integer(),V1::integer()) -> ok +%% @doc See external documentation. +uniform2ui(Location,V0,V1) -> + wxe_util:cast(5549, <>). + +%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer()) -> ok +%% @doc See external documentation. +uniform3ui(Location,V0,V1,V2) -> + wxe_util:cast(5550, <>). + +%% @spec (Location::integer(),V0::integer(),V1::integer(),V2::integer(),V3::integer()) -> ok +%% @doc See external documentation. +uniform4ui(Location,V0,V1,V2,V3) -> + wxe_util:cast(5551, <>). + +%% @spec (Location::integer(),Value::[integer()]) -> ok +%% @doc See external documentation. +uniform1uiv(Location,Value) -> + wxe_util:cast(5552, <> || C <- Value>>)/binary,0:(((length(Value)) rem 2)*32)>>). + +%% @spec (Location::integer(),Value::[{integer()}]) -> ok +%% @doc See external documentation. +uniform2uiv(Location,Value) -> + wxe_util:cast(5553, <> || {V1,V2} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[{integer()}]) -> ok +%% @doc See external documentation. +uniform3uiv(Location,Value) -> + wxe_util:cast(5554, <> || {V1,V2,V3} <- Value>>)/binary>>). + +%% @spec (Location::integer(),Value::[{integer()}]) -> ok +%% @doc See external documentation. +uniform4uiv(Location,Value) -> + wxe_util:cast(5555, <> || {V1,V2,V3,V4} <- Value>>)/binary>>). + +%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +texParameterIiv(Target,Pname,Params) -> + wxe_util:cast(5556, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Target::enum(),Pname::enum(),Params::{integer()}) -> ok +%% @doc See external documentation. +texParameterIuiv(Target,Pname,Params) -> + wxe_util:cast(5557, <> ||C <- tuple_to_list(Params)>>)/binary,0:(((1+size(Params)) rem 2)*32)>>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getTexParameterIiv(Target,Pname) -> + wxe_util:call(5558, <>). + +%% @spec (Target::enum(),Pname::enum()) -> {integer()} +%% @doc See external documentation. +getTexParameterIuiv(Target,Pname) -> + wxe_util:call(5559, <>). + +%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{integer()}) -> ok +%% @doc See external documentation. +clearBufferiv(Buffer,Drawbuffer,Value) -> + wxe_util:cast(5560, <> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>). + +%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{integer()}) -> ok +%% @doc See external documentation. +clearBufferuiv(Buffer,Drawbuffer,Value) -> + wxe_util:cast(5561, <> ||C <- tuple_to_list(Value)>>)/binary,0:(((1+size(Value)) rem 2)*32)>>). + +%% @spec (Buffer::enum(),Drawbuffer::integer(),Value::{float()}) -> ok +%% @doc See external documentation. +clearBufferfv(Buffer,Drawbuffer,Value) -> + wxe_util:cast(5562, <> ||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 external documentation. +clearBufferfi(Buffer,Drawbuffer,Depth,Stencil) -> + wxe_util:cast(5563, <>). + +%% @spec (Name::enum(),Index::integer()) -> string() +%% @doc See external documentation. +getStringi(Name,Index) -> + wxe_util:call(5564, <>). + +%% @spec (Index::integer(),X::integer()) -> ok +%% @doc See external documentation. +vertexAttribI1i(Index,X) -> + wxe_util:cast(5565, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +vertexAttribI2i(Index,X,Y) -> + wxe_util:cast(5566, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok +%% @doc See external documentation. +vertexAttribI3i(Index,X,Y,Z) -> + wxe_util:cast(5567, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok +%% @doc See external documentation. +vertexAttribI4i(Index,X,Y,Z,W) -> + wxe_util:cast(5568, <>). + +%% @spec (Index::integer(),X::integer()) -> ok +%% @doc See external documentation. +vertexAttribI1ui(Index,X) -> + wxe_util:cast(5569, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer()) -> ok +%% @doc See external documentation. +vertexAttribI2ui(Index,X,Y) -> + wxe_util:cast(5570, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer()) -> ok +%% @doc See external documentation. +vertexAttribI3ui(Index,X,Y,Z) -> + wxe_util:cast(5571, <>). + +%% @spec (Index::integer(),X::integer(),Y::integer(),Z::integer(),W::integer()) -> ok +%% @doc See external documentation. +vertexAttribI4ui(Index,X,Y,Z,W) -> + wxe_util:cast(5572, <>). + +%% @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 external documentation. +vertexAttribI4bv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5573, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttribI4sv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5574, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttribI4ubv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5575, <>). + +%% @spec (Index::integer(),V::{integer()}) -> ok +%% @doc See external documentation. +vertexAttribI4usv(Index,{V1,V2,V3,V4}) -> + wxe_util:cast(5576, <>). + +%% @spec (Mode::enum(),First::integer(),Count::integer(),Primcount::integer()) -> ok +%% @doc See external documentation. +drawArraysInstanced(Mode,First,Count,Primcount) -> + wxe_util:cast(5577, <>). + +%% @spec (Mode::enum(),Count::integer(),Type::enum(),Indices::offset()|binary(),Primcount::integer()) -> ok +%% @doc See external documentation. +drawElementsInstanced(Mode,Count,Type,Indices,Primcount) when is_integer(Indices) -> + wxe_util:cast(5578, <>); +drawElementsInstanced(Mode,Count,Type,Indices,Primcount) -> + wxe_util:send_bin(Indices), + wxe_util:cast(5579, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Buffer::integer()) -> ok +%% @doc See external documentation. +texBuffer(Target,Internalformat,Buffer) -> + wxe_util:cast(5580, <>). + +%% @spec (Index::integer()) -> ok +%% @doc See external documentation. +primitiveRestartIndex(Index) -> + wxe_util:cast(5581, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +loadTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5582, <>); +loadTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5582, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +loadTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5583, <>); +loadTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5583, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +multTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5584, <>); +multTransposeMatrixfARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5584, <>). + +%% @spec (M::{float()}) -> ok +%% @doc See external documentation. +multTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16}) -> + wxe_util:cast(5585, <>); +multTransposeMatrixdARB({M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12}) -> + wxe_util:cast(5585, <>). + +%% @spec (Weights::[integer()]) -> ok +%% @doc See external documentation. +weightbvARB(Weights) -> + wxe_util:cast(5586, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:((8-((length(Weights)+ 4) rem 8)) rem 8)>>). + +%% @spec (Weights::[integer()]) -> ok +%% @doc See external documentation. +weightsvARB(Weights) -> + wxe_util:cast(5587, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:((8-((length(Weights)*2+ 4) rem 8)) rem 8)>>). + +%% @spec (Weights::[integer()]) -> ok +%% @doc See external documentation. +weightivARB(Weights) -> + wxe_util:cast(5588, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>). + +%% @spec (Weights::[float()]) -> ok +%% @doc See external documentation. +weightfvARB(Weights) -> + wxe_util:cast(5589, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>). + +%% @spec (Weights::[float()]) -> ok +%% @doc See external documentation. +weightdvARB(Weights) -> + wxe_util:cast(5590, <<(length(Weights)):?GLuint,0:32, + (<< <> || C <- Weights>>)/binary>>). + +%% @spec (Weights::[integer()]) -> ok +%% @doc See external documentation. +weightubvARB(Weights) -> + wxe_util:cast(5591, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:((8-((length(Weights)+ 4) rem 8)) rem 8)>>). + +%% @spec (Weights::[integer()]) -> ok +%% @doc See external documentation. +weightusvARB(Weights) -> + wxe_util:cast(5592, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:((8-((length(Weights)*2+ 4) rem 8)) rem 8)>>). + +%% @spec (Weights::[integer()]) -> ok +%% @doc See external documentation. +weightuivARB(Weights) -> + wxe_util:cast(5593, <<(length(Weights)):?GLuint, + (<< <> || C <- Weights>>)/binary,0:(((1+length(Weights)) rem 2)*32)>>). + +%% @spec (Count::integer()) -> ok +%% @doc See external documentation. +vertexBlendARB(Count) -> + wxe_util:cast(5594, <>). + +%% @spec (Index::integer()) -> ok +%% @doc See external documentation. +currentPaletteMatrixARB(Index) -> + wxe_util:cast(5595, <>). + +%% @spec (Indices::[integer()]) -> ok +%% @doc See external documentation. +matrixIndexubvARB(Indices) -> + wxe_util:cast(5596, <<(length(Indices)):?GLuint, + (<< <> || C <- Indices>>)/binary,0:((8-((length(Indices)+ 4) rem 8)) rem 8)>>). + +%% @spec (Indices::[integer()]) -> ok +%% @doc See external documentation. +matrixIndexusvARB(Indices) -> + wxe_util:cast(5597, <<(length(Indices)):?GLuint, + (<< <> || C <- Indices>>)/binary,0:((8-((length(Indices)*2+ 4) rem 8)) rem 8)>>). + +%% @spec (Indices::[integer()]) -> ok +%% @doc See external documentation. +matrixIndexuivARB(Indices) -> + wxe_util:cast(5598, <<(length(Indices)):?GLuint, + (<< <> || C <- Indices>>)/binary,0:(((1+length(Indices)) rem 2)*32)>>). + +%% @spec (Target::enum(),Format::enum(),String::string()) -> ok +%% @doc See external documentation. +programStringARB(Target,Format,String) -> + wxe_util:cast(5599, <>). + +%% @spec (Target::enum(),Program::integer()) -> ok +%% @doc See external documentation. +bindProgramARB(Target,Program) -> + wxe_util:cast(5600, <>). + +%% @spec (Programs::[integer()]) -> ok +%% @doc See external documentation. +deleteProgramsARB(Programs) -> + wxe_util:cast(5601, <<(length(Programs)):?GLuint, + (<< <> || C <- Programs>>)/binary,0:(((1+length(Programs)) rem 2)*32)>>). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genProgramsARB(N) -> + wxe_util:call(5602, <>). + +%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok +%% @doc See external documentation. +programEnvParameter4dARB(Target,Index,X,Y,Z,W) -> + wxe_util:cast(5603, <>). + +%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok +%% @doc See external documentation. +programEnvParameter4dvARB(Target,Index,{P1,P2,P3,P4}) -> + wxe_util:cast(5604, <>). + +%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok +%% @doc See external documentation. +programEnvParameter4fARB(Target,Index,X,Y,Z,W) -> + wxe_util:cast(5605, <>). + +%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok +%% @doc See external documentation. +programEnvParameter4fvARB(Target,Index,{P1,P2,P3,P4}) -> + wxe_util:cast(5606, <>). + +%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok +%% @doc See external documentation. +programLocalParameter4dARB(Target,Index,X,Y,Z,W) -> + wxe_util:cast(5607, <>). + +%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok +%% @doc See external documentation. +programLocalParameter4dvARB(Target,Index,{P1,P2,P3,P4}) -> + wxe_util:cast(5608, <>). + +%% @spec (Target::enum(),Index::integer(),X::float(),Y::float(),Z::float(),W::float()) -> ok +%% @doc See external documentation. +programLocalParameter4fARB(Target,Index,X,Y,Z,W) -> + wxe_util:cast(5609, <>). + +%% @spec (Target::enum(),Index::integer(),Params::{float()}) -> ok +%% @doc See external documentation. +programLocalParameter4fvARB(Target,Index,{P1,P2,P3,P4}) -> + wxe_util:cast(5610, <>). + +%% @spec (Target::enum(),Index::integer()) -> {float()} +%% @doc See external documentation. +getProgramEnvParameterdvARB(Target,Index) -> + wxe_util:call(5611, <>). + +%% @spec (Target::enum(),Index::integer()) -> {float()} +%% @doc See external documentation. +getProgramEnvParameterfvARB(Target,Index) -> + wxe_util:call(5612, <>). + +%% @spec (Target::enum(),Index::integer()) -> {float()} +%% @doc See external documentation. +getProgramLocalParameterdvARB(Target,Index) -> + wxe_util:call(5613, <>). + +%% @spec (Target::enum(),Index::integer()) -> {float()} +%% @doc See external documentation. +getProgramLocalParameterfvARB(Target,Index) -> + wxe_util:call(5614, <>). + +%% @spec (Target::enum(),Pname::enum(),String::wx:wx_mem()) -> ok +%% @doc See external documentation. +getProgramStringARB(Target,Pname,String) -> + wxe_util:send_bin(String#wx_mem.bin), + wxe_util:call(5615, <>). + +%% @spec (Obj::integer()) -> ok +%% @doc See external documentation. +deleteObjectARB(Obj) -> + wxe_util:cast(5616, <>). + +%% @spec (Pname::enum()) -> integer() +%% @doc See external documentation. +getHandleARB(Pname) -> + wxe_util:call(5617, <>). + +%% @spec (ContainerObj::integer(),AttachedObj::integer()) -> ok +%% @doc See external documentation. +detachObjectARB(ContainerObj,AttachedObj) -> + wxe_util:cast(5618, <>). + +%% @spec (ShaderType::enum()) -> integer() +%% @doc See external documentation. +createShaderObjectARB(ShaderType) -> + wxe_util:call(5619, <>). + +%% @spec (ShaderObj::integer(),String::[string()]) -> ok +%% @doc See external documentation. +shaderSourceARB(ShaderObj,String) -> + StringTemp = list_to_binary([[Str|[0]] || Str <- String ]), + wxe_util:cast(5620, <>). + +%% @spec (ShaderObj::integer()) -> ok +%% @doc See external documentation. +compileShaderARB(ShaderObj) -> + wxe_util:cast(5621, <>). + +%% @spec () -> integer() +%% @doc See external documentation. +createProgramObjectARB() -> + wxe_util:call(5622, <<>>). + +%% @spec (ContainerObj::integer(),Obj::integer()) -> ok +%% @doc See external documentation. +attachObjectARB(ContainerObj,Obj) -> + wxe_util:cast(5623, <>). + +%% @spec (ProgramObj::integer()) -> ok +%% @doc See external documentation. +linkProgramARB(ProgramObj) -> + wxe_util:cast(5624, <>). + +%% @spec (ProgramObj::integer()) -> ok +%% @doc See external documentation. +useProgramObjectARB(ProgramObj) -> + wxe_util:cast(5625, <>). + +%% @spec (ProgramObj::integer()) -> ok +%% @doc See external documentation. +validateProgramARB(ProgramObj) -> + wxe_util:cast(5626, <>). + +%% @spec (Obj::integer(),Pname::enum()) -> float() +%% @doc See external documentation. +getObjectParameterfvARB(Obj,Pname) -> + wxe_util:call(5627, <>). + +%% @spec (Obj::integer(),Pname::enum()) -> integer() +%% @doc See external documentation. +getObjectParameterivARB(Obj,Pname) -> + wxe_util:call(5628, <>). + +%% @spec (Obj::integer(),MaxLength::integer()) -> string() +%% @doc See external documentation. +getInfoLogARB(Obj,MaxLength) -> + wxe_util:call(5629, <>). + +%% @spec (ContainerObj::integer(),MaxCount::integer()) -> [integer()] +%% @doc See external documentation. +getAttachedObjectsARB(ContainerObj,MaxCount) -> + wxe_util:call(5630, <>). + +%% @spec (ProgramObj::integer(),Name::string()) -> integer() +%% @doc See external documentation. +getUniformLocationARB(ProgramObj,Name) -> + wxe_util:call(5631, <>). + +%% @spec (ProgramObj::integer(),Index::integer(),MaxLength::integer()) -> {Size::integer(),Type::enum(),Name::string()} +%% @doc See external documentation. +getActiveUniformARB(ProgramObj,Index,MaxLength) -> + wxe_util:call(5632, <>). + +%% @spec (ProgramObj::integer(),Location::integer()) -> {float()} +%% @doc See external documentation. +getUniformfvARB(ProgramObj,Location) -> + wxe_util:call(5633, <>). + +%% @spec (ProgramObj::integer(),Location::integer()) -> {integer()} +%% @doc See external documentation. +getUniformivARB(ProgramObj,Location) -> + wxe_util:call(5634, <>). + +%% @spec (Obj::integer(),MaxLength::integer()) -> string() +%% @doc See external documentation. +getShaderSourceARB(Obj,MaxLength) -> + wxe_util:call(5635, <>). + +%% @spec (ProgramObj::integer(),Index::integer(),Name::string()) -> ok +%% @doc See external documentation. +bindAttribLocationARB(ProgramObj,Index,Name) -> + wxe_util:cast(5636, <>). + +%% @spec (ProgramObj::integer(),Index::integer(),MaxLength::integer()) -> {Size::integer(),Type::enum(),Name::string()} +%% @doc See external documentation. +getActiveAttribARB(ProgramObj,Index,MaxLength) -> + wxe_util:call(5637, <>). + +%% @spec (ProgramObj::integer(),Name::string()) -> integer() +%% @doc See external documentation. +getAttribLocationARB(ProgramObj,Name) -> + wxe_util:call(5638, <>). + +%% @spec (Renderbuffer::integer()) -> 0|1 +%% @doc See external documentation. +isRenderbuffer(Renderbuffer) -> + wxe_util:call(5639, <>). + +%% @spec (Target::enum(),Renderbuffer::integer()) -> ok +%% @doc See external documentation. +bindRenderbuffer(Target,Renderbuffer) -> + wxe_util:cast(5640, <>). + +%% @spec (Renderbuffers::[integer()]) -> ok +%% @doc See external documentation. +deleteRenderbuffers(Renderbuffers) -> + wxe_util:cast(5641, <<(length(Renderbuffers)):?GLuint, + (<< <> || C <- Renderbuffers>>)/binary,0:(((1+length(Renderbuffers)) rem 2)*32)>>). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genRenderbuffers(N) -> + wxe_util:call(5642, <>). + +%% @spec (Target::enum(),Internalformat::enum(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +renderbufferStorage(Target,Internalformat,Width,Height) -> + wxe_util:cast(5643, <>). + +%% @spec (Target::enum(),Pname::enum()) -> integer() +%% @doc See external documentation. +getRenderbufferParameteriv(Target,Pname) -> + wxe_util:call(5644, <>). + +%% @spec (Framebuffer::integer()) -> 0|1 +%% @doc See external documentation. +isFramebuffer(Framebuffer) -> + wxe_util:call(5645, <>). + +%% @spec (Target::enum(),Framebuffer::integer()) -> ok +%% @doc See external documentation. +bindFramebuffer(Target,Framebuffer) -> + wxe_util:cast(5646, <>). + +%% @spec (Framebuffers::[integer()]) -> ok +%% @doc See external documentation. +deleteFramebuffers(Framebuffers) -> + wxe_util:cast(5647, <<(length(Framebuffers)):?GLuint, + (<< <> || C <- Framebuffers>>)/binary,0:(((1+length(Framebuffers)) rem 2)*32)>>). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genFramebuffers(N) -> + wxe_util:call(5648, <>). + +%% @spec (Target::enum()) -> enum() +%% @doc See external documentation. +checkFramebufferStatus(Target) -> + wxe_util:call(5649, <>). + +%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer()) -> ok +%% @doc See external documentation. +framebufferTexture1D(Target,Attachment,Textarget,Texture,Level) -> + wxe_util:cast(5650, <>). + +%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer()) -> ok +%% @doc See external documentation. +framebufferTexture2D(Target,Attachment,Textarget,Texture,Level) -> + wxe_util:cast(5651, <>). + +%% @spec (Target::enum(),Attachment::enum(),Textarget::enum(),Texture::integer(),Level::integer(),Zoffset::integer()) -> ok +%% @doc See external documentation. +framebufferTexture3D(Target,Attachment,Textarget,Texture,Level,Zoffset) -> + wxe_util:cast(5652, <>). + +%% @spec (Target::enum(),Attachment::enum(),Renderbuffertarget::enum(),Renderbuffer::integer()) -> ok +%% @doc See external documentation. +framebufferRenderbuffer(Target,Attachment,Renderbuffertarget,Renderbuffer) -> + wxe_util:cast(5653, <>). + +%% @spec (Target::enum(),Attachment::enum(),Pname::enum()) -> integer() +%% @doc See external documentation. +getFramebufferAttachmentParameteriv(Target,Attachment,Pname) -> + wxe_util:call(5654, <>). + +%% @spec (Target::enum()) -> ok +%% @doc See external documentation. +generateMipmap(Target) -> + wxe_util:cast(5655, <>). + +%% @spec (SrcX0::integer(),SrcY0::integer(),SrcX1::integer(),SrcY1::integer(),DstX0::integer(),DstY0::integer(),DstX1::integer(),DstY1::integer(),Mask::integer(),Filter::enum()) -> ok +%% @doc See external documentation. +blitFramebuffer(SrcX0,SrcY0,SrcX1,SrcY1,DstX0,DstY0,DstX1,DstY1,Mask,Filter) -> + wxe_util:cast(5656, <>). + +%% @spec (Target::enum(),Samples::integer(),Internalformat::enum(),Width::integer(),Height::integer()) -> ok +%% @doc See external documentation. +renderbufferStorageMultisample(Target,Samples,Internalformat,Width,Height) -> + wxe_util:cast(5657, <>). + +%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer(),Layer::integer()) -> ok +%% @doc See external documentation. +framebufferTextureLayer(Target,Attachment,Texture,Level,Layer) -> + wxe_util:cast(5658, <>). + +%% @spec (Program::integer(),Pname::enum(),Value::integer()) -> ok +%% @doc See external documentation. +programParameteriARB(Program,Pname,Value) -> + wxe_util:cast(5659, <>). + +%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer()) -> ok +%% @doc See external documentation. +framebufferTextureARB(Target,Attachment,Texture,Level) -> + wxe_util:cast(5660, <>). + +%% @spec (Target::enum(),Attachment::enum(),Texture::integer(),Level::integer(),Face::enum()) -> ok +%% @doc See external documentation. +framebufferTextureFaceARB(Target,Attachment,Texture,Level,Face) -> + wxe_util:cast(5661, <>). + +%% @spec (Index::integer(),Divisor::integer()) -> ok +%% @doc See external documentation. +vertexAttribDivisorARB(Index,Divisor) -> + wxe_util:cast(5662, <>). + +%% @spec (Target::enum(),Offset::integer(),Length::integer()) -> ok +%% @doc See external documentation. +flushMappedBufferRange(Target,Offset,Length) -> + wxe_util:cast(5663, <>). + +%% @spec (Array::integer()) -> ok +%% @doc See external documentation. +bindVertexArray(Array) -> + wxe_util:cast(5664, <>). + +%% @spec (Arrays::[integer()]) -> ok +%% @doc See external documentation. +deleteVertexArrays(Arrays) -> + wxe_util:cast(5665, <<(length(Arrays)):?GLuint, + (<< <> || C <- Arrays>>)/binary,0:(((1+length(Arrays)) rem 2)*32)>>). + +%% @spec (N::integer()) -> [integer()] +%% @doc See external documentation. +genVertexArrays(N) -> + wxe_util:call(5666, <>). + +%% @spec (Array::integer()) -> 0|1 +%% @doc See external documentation. +isVertexArray(Array) -> + wxe_util:call(5667, <>). + +%% @spec (Program::integer(),UniformNames::[string()]) -> [integer()] +%% @doc See external documentation. +getUniformIndices(Program,UniformNames) -> + UniformNamesTemp = list_to_binary([[Str|[0]] || Str <- UniformNames ]), + wxe_util:call(5668, <>). + +%% @spec (Program::integer(),UniformIndices::[integer()],Pname::enum()) -> [integer()] +%% @doc See external documentation. +getActiveUniformsiv(Program,UniformIndices,Pname) -> + wxe_util:call(5669, <> || C <- UniformIndices>>)/binary,0:(((length(UniformIndices)) rem 2)*32),Pname:?GLenum>>). + +%% @spec (Program::integer(),UniformIndex::integer(),BufSize::integer()) -> string() +%% @doc See external documentation. +getActiveUniformName(Program,UniformIndex,BufSize) -> + wxe_util:call(5670, <>). + +%% @spec (Program::integer(),UniformBlockName::string()) -> integer() +%% @doc See external documentation. +getUniformBlockIndex(Program,UniformBlockName) -> + wxe_util:call(5671, <>). + +%% @spec (Program::integer(),UniformBlockIndex::integer(),Pname::enum(),Params::wx:wx_mem()) -> ok +%% @doc See external documentation. +getActiveUniformBlockiv(Program,UniformBlockIndex,Pname,Params) -> + wxe_util:send_bin(Params#wx_mem.bin), + wxe_util:call(5672, <>). + +%% @spec (Program::integer(),UniformBlockIndex::integer(),BufSize::integer()) -> string() +%% @doc See external documentation. +getActiveUniformBlockName(Program,UniformBlockIndex,BufSize) -> + wxe_util:call(5673, <>). + +%% @spec (Program::integer(),UniformBlockIndex::integer(),UniformBlockBinding::integer()) -> ok +%% @doc See external documentation. +uniformBlockBinding(Program,UniformBlockIndex,UniformBlockBinding) -> + wxe_util:cast(5674, <>). + +%% @spec (ReadTarget::enum(),WriteTarget::enum(),ReadOffset::integer(),WriteOffset::integer(),Size::integer()) -> ok +%% @doc See external documentation. +copyBufferSubData(ReadTarget,WriteTarget,ReadOffset,WriteOffset,Size) -> + wxe_util:cast(5675, <>). + +%% @spec () -> ok +%% @doc See external documentation. +resizeBuffersMESA() -> + wxe_util:cast(5676, <<>>). + +%% @spec (X::float(),Y::float(),Z::float(),W::float()) -> ok +%% @doc See external documentation. +windowPos4dMESA(X,Y,Z,W) -> + wxe_util:cast(5677, <>). + +%% @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 external documentation. +windowPos4fMESA(X,Y,Z,W) -> + wxe_util:cast(5678, <>). + +%% @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 external documentation. +windowPos4iMESA(X,Y,Z,W) -> + wxe_util:cast(5679, <>). + +%% @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 external documentation. +windowPos4sMESA(X,Y,Z,W) -> + wxe_util:cast(5680, <>). + +%% @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 external documentation. +depthBoundsEXT(Zmin,Zmax) -> + wxe_util:cast(5681, <>). + +%% @spec (StencilTagBits::integer(),StencilClearTag::integer()) -> ok +%% @doc See external documentation. +stencilClearTagEXT(StencilTagBits,StencilClearTag) -> + wxe_util:cast(5682, <>). + 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 www.opengl.org +%% +%% 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,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 external documentation. +build1DMipmapLevels(Target,InternalFormat,Width,Format,Type,Level,Base,Max,Data) -> + wxe_util:send_bin(Data), + wxe_util:call(5010, <>). + +%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Format::enum(),Type::enum(),Data::binary()) -> integer() +%% @doc See external documentation. +build1DMipmaps(Target,InternalFormat,Width,Format,Type,Data) -> + wxe_util:send_bin(Data), + wxe_util:call(5011, <>). + +%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Level::integer(),Base::integer(),Max::integer(),Data::binary()) -> integer() +%% @doc See external documentation. +build2DMipmapLevels(Target,InternalFormat,Width,Height,Format,Type,Level,Base,Max,Data) -> + wxe_util:send_bin(Data), + wxe_util:call(5012, <>). + +%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Format::enum(),Type::enum(),Data::binary()) -> integer() +%% @doc See external documentation. +build2DMipmaps(Target,InternalFormat,Width,Height,Format,Type,Data) -> + wxe_util:send_bin(Data), + wxe_util:call(5013, <>). + +%% @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 external documentation. +build3DMipmapLevels(Target,InternalFormat,Width,Height,Depth,Format,Type,Level,Base,Max,Data) -> + wxe_util:send_bin(Data), + wxe_util:call(5014, <>). + +%% @spec (Target::enum(),InternalFormat::integer(),Width::integer(),Height::integer(),Depth::integer(),Format::enum(),Type::enum(),Data::binary()) -> integer() +%% @doc See external documentation. +build3DMipmaps(Target,InternalFormat,Width,Height,Depth,Format,Type,Data) -> + wxe_util:send_bin(Data), + wxe_util:call(5015, <>). + +%% @spec (ExtName::[integer()],ExtString::[integer()]) -> 0|1 +%% @doc See external documentation. +checkExtension(ExtName,ExtString) -> + wxe_util:call(5016, <<(length(ExtName)):?GLuint, + (<< <> || C <- ExtName>>)/binary,0:((8-((length(ExtName)+ 4) rem 8)) rem 8),(length(ExtString)):?GLuint, + (<< <> || 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 external documentation. +cylinder(Quad,Base,Top,Height,Slices,Stacks) -> + wxe_util:cast(5017, <>). + +%% @spec (Quad::integer()) -> ok +%% @doc See external documentation. +deleteQuadric(Quad) -> + wxe_util:cast(5018, <>). + +%% @spec (Quad::integer(),Inner::float(),Outer::float(),Slices::integer(),Loops::integer()) -> ok +%% @doc See external documentation. +disk(Quad,Inner,Outer,Slices,Loops) -> + wxe_util:cast(5019, <>). + +%% @spec (Error::enum()) -> string() +%% @doc See external documentation. +errorString(Error) -> + wxe_util:call(5020, <>). + +%% @spec (Name::enum()) -> string() +%% @doc See external documentation. +getString(Name) -> + wxe_util:call(5021, <>). + +%% @spec (EyeX::float(),EyeY::float(),EyeZ::float(),CenterX::float(),CenterY::float(),CenterZ::float(),UpX::float(),UpY::float(),UpZ::float()) -> ok +%% @doc See external documentation. +lookAt(EyeX,EyeY,EyeZ,CenterX,CenterY,CenterZ,UpX,UpY,UpZ) -> + wxe_util:cast(5022, <>). + +%% @spec () -> integer() +%% @doc See external documentation. +newQuadric() -> + wxe_util:call(5023, <<>>). + +%% @spec (Left::float(),Right::float(),Bottom::float(),Top::float()) -> ok +%% @doc See external documentation. +ortho2D(Left,Right,Bottom,Top) -> + wxe_util:cast(5024, <>). + +%% @spec (Quad::integer(),Inner::float(),Outer::float(),Slices::integer(),Loops::integer(),Start::float(),Sweep::float()) -> ok +%% @doc See external documentation. +partialDisk(Quad,Inner,Outer,Slices,Loops,Start,Sweep) -> + wxe_util:cast(5025, <>). + +%% @spec (Fovy::float(),Aspect::float(),ZNear::float(),ZFar::float()) -> ok +%% @doc See external documentation. +perspective(Fovy,Aspect,ZNear,ZFar) -> + wxe_util:cast(5026, <>). + +%% @spec (X::float(),Y::float(),DelX::float(),DelY::float(),Viewport::{integer()}) -> ok +%% @doc See external documentation. +pickMatrix(X,Y,DelX,DelY,{V1,V2,V3,V4}) -> + wxe_util:cast(5027, <>). + +%% @spec (ObjX::float(),ObjY::float(),ObjZ::float(),Model::{float()},Proj::{float()},View::{integer()}) -> {integer(),WinX::float(),WinY::float(),WinZ::float()} +%% @doc See external 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, <>); +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, <>). + +%% @spec (Quad::integer(),Draw::enum()) -> ok +%% @doc See external documentation. +quadricDrawStyle(Quad,Draw) -> + wxe_util:cast(5029, <>). + +%% @spec (Quad::integer(),Normal::enum()) -> ok +%% @doc See external documentation. +quadricNormals(Quad,Normal) -> + wxe_util:cast(5030, <>). + +%% @spec (Quad::integer(),Orientation::enum()) -> ok +%% @doc See external documentation. +quadricOrientation(Quad,Orientation) -> + wxe_util:cast(5031, <>). + +%% @spec (Quad::integer(),Texture::0|1) -> ok +%% @doc See external documentation. +quadricTexture(Quad,Texture) -> + wxe_util:cast(5032, <>). + +%% @spec (Format::enum(),WIn::integer(),HIn::integer(),TypeIn::enum(),DataIn::binary(),WOut::integer(),HOut::integer(),TypeOut::enum(),DataOut::wx:wx_mem()) -> integer() +%% @doc See external 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, <>). + +%% @spec (Quad::integer(),Radius::float(),Slices::integer(),Stacks::integer()) -> ok +%% @doc See external documentation. +sphere(Quad,Radius,Slices,Stacks) -> + wxe_util:cast(5034, <>). + +%% @spec (WinX::float(),WinY::float(),WinZ::float(),Model::{float()},Proj::{float()},View::{integer()}) -> {integer(),ObjX::float(),ObjY::float(),ObjZ::float()} +%% @doc See external 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, <>); +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, <>). + +%% @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 external 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, <>); +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, <>). + 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: wxAcceleratorEntry. +%% @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 external documentation. +%%
Alternatives: +%%

+%% new([Option]) -> wxAcceleratorEntry() +%%
Option = {flags, integer()} | {keyCode, integer()} | {cmd, integer()} | {item, wxMenuItem:wxMenuItem()} +%%

+%%

+%% new(Entry::wxAcceleratorEntry()) -> wxAcceleratorEntry() +%%

+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, + <>); +new(#wx_ref{type=EntryT,ref=EntryRef}) -> + ?CLASS(EntryT,wxAcceleratorEntry), + wxe_util:construct(?wxAcceleratorEntry_new_1_1, + <>). + +%% @spec (This::wxAcceleratorEntry()) -> integer() +%% @doc See external documentation. +getCommand(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAcceleratorEntry), + wxe_util:call(?wxAcceleratorEntry_GetCommand, + <>). + +%% @spec (This::wxAcceleratorEntry()) -> integer() +%% @doc See external documentation. +getFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAcceleratorEntry), + wxe_util:call(?wxAcceleratorEntry_GetFlags, + <>). + +%% @spec (This::wxAcceleratorEntry()) -> integer() +%% @doc See external documentation. +getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAcceleratorEntry), + wxe_util:call(?wxAcceleratorEntry_GetKeyCode, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxAcceleratorTable. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxAcceleratorTable_new_0, + <<>>). + +%% @spec (N::integer(), Entries::[wxAcceleratorEntry:wxAcceleratorEntry()]) -> wxAcceleratorTable() +%% @doc See external documentation. +new(N,Entries) + when is_integer(N),is_list(Entries) -> + [?CLASS(EntriesT,wxAcceleratorEntry) || #wx_ref{type=EntriesT} <- Entries], + wxe_util:construct(?wxAcceleratorTable_new_2, + <> || C <- Entries>>)/binary, 0:(((0+length(Entries)) rem 2)*32)>>). + +%% @spec (This::wxAcceleratorTable()) -> bool() +%% @doc See external documentation. +ok(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAcceleratorTable), + wxe_util:call(?wxAcceleratorTable_Ok, + <>). + +%% @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: wxArtProvider. +%% @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 external documentation. +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 external documentation. +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: wxAuiDockArt. +%% @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: wxAuiManager. +%%

This class is derived (and can use functions) from: +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% addPane(This::wxAuiManager(), Window::wxWindow:wxWindow(), [Option]) -> bool() +%%
Option = {direction, integer()} | {caption, string()} +%%

+%%

+%% addPane(This::wxAuiManager(), Window::wxWindow:wxWindow(), Pane_info::wxAuiPaneInfo:wxAuiPaneInfo()) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow(), Pane_info::wxAuiPaneInfo:wxAuiPaneInfo(), Drop_pos::{X::integer(),Y::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiManager(), Window::wxWindow:wxWindow()) -> bool() +%% @doc See external documentation. +detachPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxAuiManager), + ?CLASS(WindowT,wxWindow), + wxe_util:call(?wxAuiManager_DetachPane, + <>). + +%% @spec (This::wxAuiManager()) -> wxAuiPaneInfoArray:wxAuiPaneInfoArray() +%% @doc See external documentation. +getAllPanes(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:call(?wxAuiManager_GetAllPanes, + <>). + +%% @spec (This::wxAuiManager()) -> wxAuiDockArt:wxAuiDockArt() +%% @doc See external documentation. +getArtProvider(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:call(?wxAuiManager_GetArtProvider, + <>). + +%% @spec (This::wxAuiManager()) -> {Width_pct::float(),Height_pct::float()} +%% @doc See external documentation. +getDockSizeConstraint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:call(?wxAuiManager_GetDockSizeConstraint, + <>). + +%% @spec (This::wxAuiManager()) -> integer() +%% @doc See external documentation. +getFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:call(?wxAuiManager_GetFlags, + <>). + +%% @spec (This::wxAuiManager()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getManagedWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:call(?wxAuiManager_GetManagedWindow, + <>). + +%% @spec (Window::wxWindow:wxWindow()) -> wxAuiManager() +%% @doc See external documentation. +getManager(#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(WindowT,wxWindow), + wxe_util:call(?wxAuiManager_GetManager, + <>). + +%% @spec (This::wxAuiManager(),X::string()|term()) -> wxAuiPaneInfo:wxAuiPaneInfo() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% getPane(This::wxAuiManager(), Name::string()) -> wxAuiPaneInfo:wxAuiPaneInfo() +%%

+%%

+%% getPane(This::wxAuiManager(), Window::wxWindow:wxWindow()) -> wxAuiPaneInfo:wxAuiPaneInfo() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxAuiManager()) -> ok +%% @doc See external documentation. +hideHint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:cast(?wxAuiManager_HideHint, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiManager(), Pane_part::string(), Pane::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiManager(), Pane::wxAuiPaneInfo:wxAuiPaneInfo()) -> string() +%% @doc See external documentation. +savePaneInfo(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaneT,ref=PaneRef}) -> + ?CLASS(ThisT,wxAuiManager), + ?CLASS(PaneT,wxAuiPaneInfo), + wxe_util:call(?wxAuiManager_SavePaneInfo, + <>). + +%% @spec (This::wxAuiManager()) -> string() +%% @doc See external documentation. +savePerspective(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:call(?wxAuiManager_SavePerspective, + <>). + +%% @spec (This::wxAuiManager(), Art_provider::wxAuiDockArt:wxAuiDockArt()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiManager(), Width_pct::float(), Height_pct::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiManager(), Flags::integer()) -> ok +%% @doc See external documentation. +setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:cast(?wxAuiManager_SetFlags, + <>). + +%% @spec (This::wxAuiManager(), Managed_wnd::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiManager(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiManager()) -> ok +%% @doc See external documentation. +unInit(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:cast(?wxAuiManager_UnInit, + <>). + +%% @spec (This::wxAuiManager()) -> ok +%% @doc See external documentation. +update(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManager), + wxe_util:cast(?wxAuiManager_Update, + <>). + +%% @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: wxAuiManagerEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
aui_pane_button, aui_pane_close, aui_pane_maximize, aui_pane_restore, aui_render, aui_find_manager
+%% See also the message variant {@link wxEvtHandler:wxAuiManager(). #wxAuiManager{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +setManager(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MgrT,ref=MgrRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + ?CLASS(MgrT,wxAuiManager), + wxe_util:cast(?wxAuiManagerEvent_SetManager, + <>). + +%% @spec (This::wxAuiManagerEvent()) -> wxAuiManager:wxAuiManager() +%% @doc See external documentation. +getManager(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:call(?wxAuiManagerEvent_GetManager, + <>). + +%% @spec (This::wxAuiManagerEvent(), P::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok +%% @doc See external documentation. +setPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PT,ref=PRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + ?CLASS(PT,wxAuiPaneInfo), + wxe_util:cast(?wxAuiManagerEvent_SetPane, + <>). + +%% @spec (This::wxAuiManagerEvent()) -> wxAuiPaneInfo:wxAuiPaneInfo() +%% @doc See external documentation. +getPane(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:call(?wxAuiManagerEvent_GetPane, + <>). + +%% @spec (This::wxAuiManagerEvent(), B::integer()) -> ok +%% @doc See external documentation. +setButton(#wx_ref{type=ThisT,ref=ThisRef},B) + when is_integer(B) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:cast(?wxAuiManagerEvent_SetButton, + <>). + +%% @spec (This::wxAuiManagerEvent()) -> integer() +%% @doc See external documentation. +getButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:call(?wxAuiManagerEvent_GetButton, + <>). + +%% @spec (This::wxAuiManagerEvent(), Pdc::wxDC:wxDC()) -> ok +%% @doc See external documentation. +setDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PdcT,ref=PdcRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + ?CLASS(PdcT,wxDC), + wxe_util:cast(?wxAuiManagerEvent_SetDC, + <>). + +%% @spec (This::wxAuiManagerEvent()) -> wxDC:wxDC() +%% @doc See external documentation. +getDC(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:call(?wxAuiManagerEvent_GetDC, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiManagerEvent()) -> bool() +%% @doc See external documentation. +getVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:call(?wxAuiManagerEvent_GetVeto, + <>). + +%% @spec (This::wxAuiManagerEvent(), Can_veto::bool()) -> ok +%% @doc See external documentation. +setCanVeto(#wx_ref{type=ThisT,ref=ThisRef},Can_veto) + when is_boolean(Can_veto) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:cast(?wxAuiManagerEvent_SetCanVeto, + <>). + +%% @spec (This::wxAuiManagerEvent()) -> bool() +%% @doc See external documentation. +canVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiManagerEvent), + wxe_util:call(?wxAuiManagerEvent_CanVeto, + <>). + + %% 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: wxAuiNotebook. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiNotebook(), Page::integer()) -> bool() +%% @doc See external documentation. +deletePage(#wx_ref{type=ThisT,ref=ThisRef},Page) + when is_integer(Page) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_DeletePage, + <>). + +%% @spec (This::wxAuiNotebook()) -> wxAuiTabArt:wxAuiTabArt() +%% @doc See external documentation. +getArtProvider(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_GetArtProvider, + <>). + +%% @spec (This::wxAuiNotebook(), Page_idx::integer()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getPage(#wx_ref{type=ThisT,ref=ThisRef},Page_idx) + when is_integer(Page_idx) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_GetPage, + <>). + +%% @spec (This::wxAuiNotebook(), Page_idx::integer()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getPageBitmap(#wx_ref{type=ThisT,ref=ThisRef},Page_idx) + when is_integer(Page_idx) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_GetPageBitmap, + <>). + +%% @spec (This::wxAuiNotebook()) -> integer() +%% @doc See external documentation. +getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_GetPageCount, + <>). + +%% @spec (This::wxAuiNotebook(), Page_wnd::wxWindow:wxWindow()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiNotebook(), Page_idx::integer()) -> string() +%% @doc See external documentation. +getPageText(#wx_ref{type=ThisT,ref=ThisRef},Page_idx) + when is_integer(Page_idx) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_GetPageText, + <>). + +%% @spec (This::wxAuiNotebook()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_GetSelection, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiNotebook(), Page::integer()) -> bool() +%% @doc See external documentation. +removePage(#wx_ref{type=ThisT,ref=ThisRef},Page) + when is_integer(Page) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_RemovePage, + <>). + +%% @spec (This::wxAuiNotebook(), Art::wxAuiTabArt:wxAuiTabArt()) -> ok +%% @doc See external documentation. +setArtProvider(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ArtT,ref=ArtRef}) -> + ?CLASS(ThisT,wxAuiNotebook), + ?CLASS(ArtT,wxAuiTabArt), + wxe_util:cast(?wxAuiNotebook_SetArtProvider, + <>). + +%% @spec (This::wxAuiNotebook(), Font::wxFont:wxFont()) -> bool() +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxAuiNotebook), + ?CLASS(FontT,wxFont), + wxe_util:call(?wxAuiNotebook_SetFont, + <>). + +%% @spec (This::wxAuiNotebook(), Page::integer(), Bitmap::wxBitmap:wxBitmap()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiNotebook(), Page::integer(), Text::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiNotebook(), New_page::integer()) -> integer() +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},New_page) + when is_integer(New_page) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:call(?wxAuiNotebook_SetSelection, + <>). + +%% @spec (This::wxAuiNotebook(), Height::integer()) -> ok +%% @doc See external documentation. +setTabCtrlHeight(#wx_ref{type=ThisT,ref=ThisRef},Height) + when is_integer(Height) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:cast(?wxAuiNotebook_SetTabCtrlHeight, + <>). + +%% @spec (This::wxAuiNotebook(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setUniformBitmapSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxAuiNotebook), + wxe_util:cast(?wxAuiNotebook_SetUniformBitmapSize, + <>). + +%% @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: wxAuiNotebookEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_auinotebook_page_close, command_auinotebook_page_changed, command_auinotebook_page_changing, command_auinotebook_button, command_auinotebook_begin_drag, command_auinotebook_end_drag, command_auinotebook_drag_motion, command_auinotebook_allow_dnd, command_auinotebook_tab_middle_down, command_auinotebook_tab_middle_up, command_auinotebook_tab_right_down, command_auinotebook_tab_right_up, command_auinotebook_page_closed, command_auinotebook_drag_done, command_auinotebook_bg_dclick
+%% See also the message variant {@link wxEvtHandler:wxAuiNotebook(). #wxAuiNotebook{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},S) + when is_integer(S) -> + ?CLASS(ThisT,wxAuiNotebookEvent), + wxe_util:cast(?wxAuiNotebookEvent_SetSelection, + <>). + +%% @spec (This::wxAuiNotebookEvent()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiNotebookEvent), + wxe_util:call(?wxAuiNotebookEvent_GetSelection, + <>). + +%% @spec (This::wxAuiNotebookEvent(), S::integer()) -> ok +%% @doc See external documentation. +setOldSelection(#wx_ref{type=ThisT,ref=ThisRef},S) + when is_integer(S) -> + ?CLASS(ThisT,wxAuiNotebookEvent), + wxe_util:cast(?wxAuiNotebookEvent_SetOldSelection, + <>). + +%% @spec (This::wxAuiNotebookEvent()) -> integer() +%% @doc See external documentation. +getOldSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiNotebookEvent), + wxe_util:call(?wxAuiNotebookEvent_GetOldSelection, + <>). + +%% @spec (This::wxAuiNotebookEvent(), S::wxAuiNotebook:wxAuiNotebook()) -> ok +%% @doc See external documentation. +setDragSource(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ST,ref=SRef}) -> + ?CLASS(ThisT,wxAuiNotebookEvent), + ?CLASS(ST,wxAuiNotebook), + wxe_util:cast(?wxAuiNotebookEvent_SetDragSource, + <>). + +%% @spec (This::wxAuiNotebookEvent()) -> wxAuiNotebook:wxAuiNotebook() +%% @doc See external documentation. +getDragSource(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiNotebookEvent), + wxe_util:call(?wxAuiNotebookEvent_GetDragSource, + <>). + + %% 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: wxAuiPaneInfo. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxAuiPaneInfo_new_0, + <<>>). + +%% @spec (C::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +new(#wx_ref{type=CT,ref=CRef}) -> + ?CLASS(CT,wxAuiPaneInfo), + wxe_util:construct(?wxAuiPaneInfo_new_1, + <>). + +%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +bottom(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Bottom, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), C::string()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +centre(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Centre, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +centrePane(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_CentrePane, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +defaultPane(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_DefaultPane, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Direction::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +direction(#wx_ref{type=ThisT,ref=ThisRef},Direction) + when is_integer(Direction) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Direction, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +dock(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Dock, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +fixed(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Fixed, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +float(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Float, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Pos::{X::integer(),Y::integer()}) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasBorder, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasCaption(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasCaption, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasCloseButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasCloseButton, + <>). + +%% @spec (This::wxAuiPaneInfo(), Flag::integer()) -> bool() +%% @doc See external documentation. +hasFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_integer(Flag) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasFlag, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasGripper(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasGripper, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasGripperTop(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasGripperTop, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasMaximizeButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasMaximizeButton, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasMinimizeButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasMinimizeButton, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +hasPinButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_HasPinButton, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +hide(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Hide, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isBottomDockable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsBottomDockable, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isDocked(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsDocked, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isFixed(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsFixed, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isFloatable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsFloatable, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isFloating(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsFloating, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isLeftDockable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsLeftDockable, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isMovable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsMovable, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsOk, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isResizable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsResizable, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isRightDockable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsRightDockable, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsShown, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isToolbar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsToolbar, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> bool() +%% @doc See external documentation. +isTopDockable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_IsTopDockable, + <>). + +%% @spec (This::wxAuiPaneInfo(), Layer::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +layer(#wx_ref{type=ThisT,ref=ThisRef},Layer) + when is_integer(Layer) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Layer, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +left(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Left, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Size::{W::integer(),H::integer()}) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), X::integer(), Y::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), N::string()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Pos::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +position(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Position, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +right(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Right, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), Row::integer()) -> wxAuiPaneInfo() +%% @doc See external documentation. +row(#wx_ref{type=ThisT,ref=ThisRef},Row) + when is_integer(Row) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Row, + <>). + +%% @spec (This::wxAuiPaneInfo(), Source::wxAuiPaneInfo()) -> ok +%% @doc See external documentation. +safeSet(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SourceT,ref=SourceRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + ?CLASS(SourceT,wxAuiPaneInfo), + wxe_util:cast(?wxAuiPaneInfo_SafeSet, + <>). + +%% @spec (This::wxAuiPaneInfo(), Flag::integer(), Option_state::bool()) -> wxAuiPaneInfo() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +toolbarPane(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_ToolbarPane, + <>). + +%% @spec (This::wxAuiPaneInfo()) -> wxAuiPaneInfo() +%% @doc See external documentation. +top(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + wxe_util:call(?wxAuiPaneInfo_Top, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxAuiPaneInfo(), W::wxWindow:wxWindow()) -> wxAuiPaneInfo() +%% @doc See external documentation. +window(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WT,ref=WRef}) -> + ?CLASS(ThisT,wxAuiPaneInfo), + ?CLASS(WT,wxWindow), + wxe_util:call(?wxAuiPaneInfo_Window, + <>). + +%% @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: wxAuiTabArt. +%% @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: wxBitmap. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxBitmap_new_0, + <<>>). + +%% @spec (X::string()|term()) -> wxBitmap() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Filename::string()) -> new(Filename, [])

+%%

+%% new(Image::wxImage:wxImage()) -> new(Image, [])

+ +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 external documentation. +%%
Alternatives: +%%

+%% new(Width::integer(), Height::integer()) -> new(Width,Height, [])

+%%

+%% new(Filename::string(), [Option]) -> wxBitmap() +%%
Option = {type, WxBitmapType} +%%
WxBitmapType = integer() +%%
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(Image::wxImage:wxImage(), [Option]) -> wxBitmap() +%%
Option = {depth, integer()} +%%

+ +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, + <>). + +%% @spec (X::binary()|integer(),X::integer(),X::integer()|term()) -> wxBitmap() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Bits::binary(), Width::integer(), Height::integer()) -> new(Bits,Width,Height, [])

+%%

+%% new(Width::integer(), Height::integer(), [Option]) -> wxBitmap() +%%
Option = {depth, integer()} +%%

+ +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, + <>). + +%% @spec (Bits::binary(), Width::integer(), Height::integer(), [Option]) -> wxBitmap() +%% Option = {depth, integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxBitmap()) -> wxImage:wxImage() +%% @doc See external documentation. +convertToImage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_ConvertToImage, + <>). + +%% @spec (This::wxBitmap(), Icon::wxIcon:wxIcon()) -> bool() +%% @doc See external documentation. +copyFromIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef}) -> + ?CLASS(ThisT,wxBitmap), + ?CLASS(IconT,wxIcon), + wxe_util:call(?wxBitmap_CopyFromIcon, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxBitmap()) -> integer() +%% @doc See external documentation. +getDepth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_GetDepth, + <>). + +%% @spec (This::wxBitmap()) -> integer() +%% @doc See external documentation. +getHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_GetHeight, + <>). + +%% @spec (This::wxBitmap()) -> wxPalette:wxPalette() +%% @doc See external documentation. +getPalette(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_GetPalette, + <>). + +%% @spec (This::wxBitmap()) -> wxMask:wxMask() +%% @doc See external documentation. +getMask(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_GetMask, + <>). + +%% @spec (This::wxBitmap()) -> integer() +%% @doc See external documentation. +getWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_GetWidth, + <>). + +%% @spec (This::wxBitmap(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> wxBitmap() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxBitmap()) -> bool() +%% @doc See external documentation. +ok(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:call(?wxBitmap_Ok, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxBitmap(), Depth::integer()) -> ok +%% @doc See external documentation. +setDepth(#wx_ref{type=ThisT,ref=ThisRef},Depth) + when is_integer(Depth) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:cast(?wxBitmap_SetDepth, + <>). + +%% @spec (This::wxBitmap(), Height::integer()) -> ok +%% @doc See external documentation. +setHeight(#wx_ref{type=ThisT,ref=ThisRef},Height) + when is_integer(Height) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:cast(?wxBitmap_SetHeight, + <>). + +%% @spec (This::wxBitmap(), Mask::wxMask:wxMask()) -> ok +%% @doc See external documentation. +setMask(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MaskT,ref=MaskRef}) -> + ?CLASS(ThisT,wxBitmap), + ?CLASS(MaskT,wxMask), + wxe_util:cast(?wxBitmap_SetMask, + <>). + +%% @spec (This::wxBitmap(), Palette::wxPalette:wxPalette()) -> ok +%% @doc See external documentation. +setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) -> + ?CLASS(ThisT,wxBitmap), + ?CLASS(PaletteT,wxPalette), + wxe_util:cast(?wxBitmap_SetPalette, + <>). + +%% @spec (This::wxBitmap(), Width::integer()) -> ok +%% @doc See external documentation. +setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxBitmap), + wxe_util:cast(?wxBitmap_SetWidth, + <>). + +%% @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: wxBitmapButton. +%%

This class is derived (and can use functions) from: +%%
{@link wxButton} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmapDisabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmapButton), + wxe_util:call(?wxBitmapButton_GetBitmapDisabled, + <>). + +%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmapFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmapButton), + wxe_util:call(?wxBitmapButton_GetBitmapFocus, + <>). + +%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmapLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmapButton), + wxe_util:call(?wxBitmapButton_GetBitmapLabel, + <>). + +%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmapSelected(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmapButton), + wxe_util:call(?wxBitmapButton_GetBitmapSelected, + <>). + +%% @spec (This::wxBitmapButton(), Disabled::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmapDisabled(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DisabledT,ref=DisabledRef}) -> + ?CLASS(ThisT,wxBitmapButton), + ?CLASS(DisabledT,wxBitmap), + wxe_util:cast(?wxBitmapButton_SetBitmapDisabled, + <>). + +%% @spec (This::wxBitmapButton(), Focus::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmapFocus(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FocusT,ref=FocusRef}) -> + ?CLASS(ThisT,wxBitmapButton), + ?CLASS(FocusT,wxBitmap), + wxe_util:cast(?wxBitmapButton_SetBitmapFocus, + <>). + +%% @spec (This::wxBitmapButton(), Bitmap::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmapLabel(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) -> + ?CLASS(ThisT,wxBitmapButton), + ?CLASS(BitmapT,wxBitmap), + wxe_util:cast(?wxBitmapButton_SetBitmapLabel, + <>). + +%% @spec (This::wxBitmapButton(), Sel::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmapSelected(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SelT,ref=SelRef}) -> + ?CLASS(ThisT,wxBitmapButton), + ?CLASS(SelT,wxBitmap), + wxe_util:cast(?wxBitmapButton_SetBitmapSelected, + <>). + +%% @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: wxBitmapDataObject. +%%

This class is derived (and can use functions) from: +%%
{@link wxDataObject} +%%

+%% @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 external documentation. +%%
Alternatives: +%%

+%% new([Option]) -> wxBitmapDataObject() +%%
Option = {bitmap, wxBitmap:wxBitmap()} +%%

+%%

+%% new(Bitmap::wxBitmap:wxBitmap()) -> wxBitmapDataObject() +%%

+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, + <>); +new(#wx_ref{type=BitmapT,ref=BitmapRef}) -> + ?CLASS(BitmapT,wxBitmap), + wxe_util:construct(?wxBitmapDataObject_new_1_1, + <>). + +%% @spec (This::wxBitmapDataObject()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBitmapDataObject), + wxe_util:call(?wxBitmapDataObject_GetBitmap, + <>). + +%% @spec (This::wxBitmapDataObject(), Bitmap::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) -> + ?CLASS(ThisT,wxBitmapDataObject), + ?CLASS(BitmapT,wxBitmap), + wxe_util:cast(?wxBitmapDataObject_SetBitmap, + <>). + +%% @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: wxBoxSizer. +%%

This class is derived (and can use functions) from: +%%
{@link wxSizer} +%%

+%% @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 external documentation. +new(Orient) + when is_integer(Orient) -> + wxe_util:construct(?wxBoxSizer_new, + <>). + +%% @spec (This::wxBoxSizer()) -> integer() +%% @doc See external documentation. +getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBoxSizer), + wxe_util:call(?wxBoxSizer_GetOrientation, + <>). + +%% @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: wxBrush. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxBrush_new_0, + <<>>). + +%% @spec (X::term()) -> wxBrush() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Colour::wx:colour()) -> new(Colour, [])

+%%

+%% new(StippleBitmap::wxBitmap:wxBitmap()) -> wxBrush() +%%

+ +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, + <>). + +%% @spec (Colour::wx:colour(), [Option]) -> wxBrush() +%% Option = {style, integer()} +%% @doc See external documentation. +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 external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBrush), + wxe_util:call(?wxBrush_GetColour, + <>). + +%% @spec (This::wxBrush()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getStipple(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBrush), + wxe_util:call(?wxBrush_GetStipple, + <>). + +%% @spec (This::wxBrush()) -> integer() +%% @doc See external documentation. +getStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBrush), + wxe_util:call(?wxBrush_GetStyle, + <>). + +%% @spec (This::wxBrush()) -> bool() +%% @doc See external documentation. +isHatch(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBrush), + wxe_util:call(?wxBrush_IsHatch, + <>). + +%% @spec (This::wxBrush()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxBrush), + wxe_util:call(?wxBrush_IsOk, + <>). + +%% @spec (This::wxBrush(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxBrush(), R::integer(), G::integer(), B::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxBrush(), Stipple::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setStipple(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=StippleT,ref=StippleRef}) -> + ?CLASS(ThisT,wxBrush), + ?CLASS(StippleT,wxBitmap), + wxe_util:cast(?wxBrush_SetStipple, + <>). + +%% @spec (This::wxBrush(), Style::integer()) -> ok +%% @doc See external documentation. +setStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) + when is_integer(Style) -> + ?CLASS(ThisT,wxBrush), + wxe_util:cast(?wxBrush_SetStyle, + <>). + +%% @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: wxBufferedDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxMemoryDC} +%%
{@link wxDC} +%%

+%% @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 external documentation. +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 external documentation. +%%
Alternatives: +%%

+%% new(Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}) -> new(Dc,Area, [])

+%%

+%% new(Dc::wxDC:wxDC(), [Option]) -> wxBufferedDC() +%%
Option = {buffer, wxBitmap:wxBitmap()} | {style, integer()} +%%

+ +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, + <>). + +%% @spec (Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}, [Option]) -> wxBufferedDC() +%% Option = {style, integer()} +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% init(This::wxBufferedDC(), Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}) -> init(This,Dc,Area, [])

+%%

+%% init(This::wxBufferedDC(), Dc::wxDC:wxDC(), [Option]) -> ok +%%
Option = {buffer, wxBitmap:wxBitmap()} | {style, integer()} +%%

+ +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, + <>). + +%% @spec (This::wxBufferedDC(), Dc::wxDC:wxDC(), Area::{W::integer(),H::integer()}, [Option]) -> ok +%% Option = {style, integer()} +%% @doc See external documentation. +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, + <>). + +%% @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: wxBufferedPaintDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxBufferedDC} +%%
{@link wxMemoryDC} +%%
{@link wxDC} +%%

+%% @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 external documentation. +%%
Alternatives: +%%

+%% new(Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap()) -> new(Window,Buffer, [])

+%%

+%% new(Window::wxWindow:wxWindow(), [Option]) -> wxBufferedPaintDC() +%%
Option = {style, integer()} +%%

+ +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, + <>). + +%% @spec (Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap(), [Option]) -> wxBufferedPaintDC() +%% Option = {style, integer()} +%% @doc See external documentation. +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, + <>). + +%% @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: wxButton. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec () -> {W::integer(),H::integer()} +%% @doc See external documentation. +getDefaultSize() -> + wxe_util:call(?wxButton_GetDefaultSize, + <<>>). + +%% @spec (This::wxButton()) -> ok +%% @doc See external documentation. +setDefault(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxButton), + wxe_util:cast(?wxButton_SetDefault, + <>). + +%% @spec (This::wxButton(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxCalendarCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxCalendarCtrl(), Date::wx:datetime()) -> bool() +%% @doc See external documentation. +setDate(#wx_ref{type=ThisT,ref=ThisRef},Date) + when tuple_size(Date) =:= 2 -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_SetDate, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:datetime() +%% @doc See external documentation. +getDate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetDate, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxCalendarCtrl(), ColFg::wx:colour(), ColBg::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:colour() +%% @doc See external documentation. +getHeaderColourFg(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetHeaderColourFg, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:colour() +%% @doc See external documentation. +getHeaderColourBg(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetHeaderColourBg, + <>). + +%% @spec (This::wxCalendarCtrl(), ColFg::wx:colour(), ColBg::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:colour() +%% @doc See external documentation. +getHighlightColourFg(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetHighlightColourFg, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:colour() +%% @doc See external documentation. +getHighlightColourBg(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetHighlightColourBg, + <>). + +%% @spec (This::wxCalendarCtrl(), ColFg::wx:colour(), ColBg::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:colour() +%% @doc See external documentation. +getHolidayColourFg(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetHolidayColourFg, + <>). + +%% @spec (This::wxCalendarCtrl()) -> wx:colour() +%% @doc See external documentation. +getHolidayColourBg(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetHolidayColourBg, + <>). + +%% @spec (This::wxCalendarCtrl(), Day::integer()) -> wxCalendarDateAttr:wxCalendarDateAttr() +%% @doc See external documentation. +getAttr(#wx_ref{type=ThisT,ref=ThisRef},Day) + when is_integer(Day) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:call(?wxCalendarCtrl_GetAttr, + <>). + +%% @spec (This::wxCalendarCtrl(), Day::integer(), Attr::wxCalendarDateAttr:wxCalendarDateAttr()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCalendarCtrl(), Day::integer()) -> ok +%% @doc See external documentation. +setHoliday(#wx_ref{type=ThisT,ref=ThisRef},Day) + when is_integer(Day) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:cast(?wxCalendarCtrl_SetHoliday, + <>). + +%% @spec (This::wxCalendarCtrl(), Day::integer()) -> ok +%% @doc See external documentation. +resetAttr(#wx_ref{type=ThisT,ref=ThisRef},Day) + when is_integer(Day) -> + ?CLASS(ThisT,wxCalendarCtrl), + wxe_util:cast(?wxCalendarCtrl_ResetAttr, + <>). + +%% @spec (This::wxCalendarCtrl(), Pos::{X::integer(),Y::integer()}) -> {WxCalendarHitTestResult,Date::wx:datetime(),Wd::WeekDay} +%% WxCalendarHitTestResult = integer() +%% WeekDay = integer() +%% @doc See external documentation. +%%
WxCalendarHitTestResult is one of ?wxCAL_HITTEST_NOWHERE | ?wxCAL_HITTEST_HEADER | ?wxCAL_HITTEST_DAY | ?wxCAL_HITTEST_INCMONTH | ?wxCAL_HITTEST_DECMONTH | ?wxCAL_HITTEST_SURROUNDING_WEEK +%%
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, + <>). + +%% @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: wxCalendarDateAttr. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxCalendarDateAttr_new_0, + <<>>). + +%% @spec (X::WxCalendarDateBorder|term()) -> wxCalendarDateAttr() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Border::WxCalendarDateBorder) -> new(Border, [])

+%%

+%% new(ColText::wx:colour()) -> new(ColText, [])

+ +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 external documentation. +%%
Alternatives: +%%

+%% new(Border::WxCalendarDateBorder, [Option]) -> wxCalendarDateAttr() +%%
Option = {colBorder, wx:colour()} +%%
WxCalendarDateBorder = integer() +%%
WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND +%%

+%%

+%% new(ColText::wx:colour(), [Option]) -> wxCalendarDateAttr() +%%
Option = {colBack, wx:colour()} | {colBorder, wx:colour()} | {font, wxFont:wxFont()} | {border, WxCalendarDateBorder} +%%
WxCalendarDateBorder = integer() +%%
WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND +%%

+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, + <>); +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 external documentation. +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, + <>). + +%% @spec (This::wxCalendarDateAttr(), ColBack::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCalendarDateAttr(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCalendarDateAttr(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxCalendarDateAttr_SetFont, + <>). + +%% @spec (This::wxCalendarDateAttr(), Border::WxCalendarDateBorder) -> ok +%% WxCalendarDateBorder = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxCalendarDateAttr(), Holiday::bool()) -> ok +%% @doc See external documentation. +setHoliday(#wx_ref{type=ThisT,ref=ThisRef},Holiday) + when is_boolean(Holiday) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:cast(?wxCalendarDateAttr_SetHoliday, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> bool() +%% @doc See external documentation. +hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_HasTextColour, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> bool() +%% @doc See external documentation. +hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_HasBackgroundColour, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> bool() +%% @doc See external documentation. +hasBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_HasBorderColour, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> bool() +%% @doc See external documentation. +hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_HasFont, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> bool() +%% @doc See external documentation. +hasBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_HasBorder, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> bool() +%% @doc See external documentation. +isHoliday(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_IsHoliday, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> wx:colour() +%% @doc See external documentation. +getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_GetTextColour, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> wx:colour() +%% @doc See external documentation. +getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_GetBackgroundColour, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> wx:colour() +%% @doc See external documentation. +getBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_GetBorderColour, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCalendarDateAttr), + wxe_util:call(?wxCalendarDateAttr_GetFont, + <>). + +%% @spec (This::wxCalendarDateAttr()) -> WxCalendarDateBorder +%% WxCalendarDateBorder = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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: wxCalendarEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
calendar_sel_changed, calendar_day_changed, calendar_month_changed, calendar_year_changed, calendar_doubleclicked, calendar_weekday_clicked
+%% See also the message variant {@link wxEvtHandler:wxCalendar(). #wxCalendar{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxDateEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +%%
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, + <>). + + %% 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: wxCaret. +%% @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 external documentation. +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, + <>). + +%% @spec (Window::wxWindow:wxWindow(), Width::integer(), Height::integer()) -> wxCaret() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCaret(), Window::wxWindow:wxWindow(), Size::{W::integer(),H::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCaret(), Window::wxWindow:wxWindow(), Width::integer(), Height::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec () -> integer() +%% @doc See external documentation. +getBlinkTime() -> + wxe_util:call(?wxCaret_GetBlinkTime, + <<>>). + +%% @spec (This::wxCaret()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCaret), + wxe_util:call(?wxCaret_GetPosition, + <>). + +%% @spec (This::wxCaret()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCaret), + wxe_util:call(?wxCaret_GetSize, + <>). + +%% @spec (This::wxCaret()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCaret), + wxe_util:call(?wxCaret_GetWindow, + <>). + +%% @spec (This::wxCaret()) -> ok +%% @doc See external documentation. +hide(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCaret), + wxe_util:cast(?wxCaret_Hide, + <>). + +%% @spec (This::wxCaret()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCaret), + wxe_util:call(?wxCaret_IsOk, + <>). + +%% @spec (This::wxCaret()) -> bool() +%% @doc See external documentation. +isVisible(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCaret), + wxe_util:call(?wxCaret_IsVisible, + <>). + +%% @spec (This::wxCaret(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCaret(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (Milliseconds::integer()) -> ok +%% @doc See external documentation. +setBlinkTime(Milliseconds) + when is_integer(Milliseconds) -> + wxe_util:cast(?wxCaret_SetBlinkTime, + <>). + +%% @spec (This::wxCaret(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxCaret(), Width::integer(), Height::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxCheckBox. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxCheckBox()) -> bool() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCheckBox), + wxe_util:call(?wxCheckBox_GetValue, + <>). + +%% @spec (This::wxCheckBox()) -> WxCheckBoxState +%% WxCheckBoxState = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxCheckBox()) -> bool() +%% @doc See external documentation. +is3rdStateAllowedForUser(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCheckBox), + wxe_util:call(?wxCheckBox_Is3rdStateAllowedForUser, + <>). + +%% @spec (This::wxCheckBox()) -> bool() +%% @doc See external documentation. +is3State(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCheckBox), + wxe_util:call(?wxCheckBox_Is3State, + <>). + +%% @spec (This::wxCheckBox()) -> bool() +%% @doc See external documentation. +isChecked(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCheckBox), + wxe_util:call(?wxCheckBox_IsChecked, + <>). + +%% @spec (This::wxCheckBox(), State::bool()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},State) + when is_boolean(State) -> + ?CLASS(ThisT,wxCheckBox), + wxe_util:cast(?wxCheckBox_SetValue, + <>). + +%% @spec (This::wxCheckBox(), State::WxCheckBoxState) -> ok +%% WxCheckBoxState = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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: wxCheckListBox. +%%

This class is derived (and can use functions) from: +%%
{@link wxListBox} +%%
{@link wxControlWithItems} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxCheckListBox(), Index::integer()) -> bool() +%% @doc See external documentation. +isChecked(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxCheckListBox), + wxe_util:call(?wxCheckListBox_IsChecked, + <>). + +%% @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: wxChildFocusEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
child_focus
+%% See also the message variant {@link wxEvtHandler:wxChildFocus(). #wxChildFocus{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChildFocusEvent), + wxe_util:call(?wxChildFocusEvent_GetWindow, + <>). + + %% 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: wxChoice. +%%

This class is derived (and can use functions) from: +%%
{@link wxControlWithItems} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>|| 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 external documentation. +delete(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoice), + wxe_util:cast(?wxChoice_Delete, + <>). + +%% @spec (This::wxChoice()) -> integer() +%% @doc See external documentation. +getColumns(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChoice), + wxe_util:call(?wxChoice_GetColumns, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxChoicebook. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxChoicebook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxChoicebook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxChoicebook_AssignImageList, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxChoicebook()) -> bool() +%% @doc See external documentation. +deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_DeleteAllPages, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> bool() +%% @doc See external documentation. +deletePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_DeletePage, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> bool() +%% @doc See external documentation. +removePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_RemovePage, + <>). + +%% @spec (This::wxChoicebook()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetCurrentPage, + <>). + +%% @spec (This::wxChoicebook()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetImageList, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getPage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetPage, + <>). + +%% @spec (This::wxChoicebook()) -> integer() +%% @doc See external documentation. +getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetPageCount, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> integer() +%% @doc See external documentation. +getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetPageImage, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> string() +%% @doc See external documentation. +getPageText(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetPageText, + <>). + +%% @spec (This::wxChoicebook()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_GetSelection, + <>). + +%% @spec (This::wxChoicebook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()} +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_HitTest, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxChoicebook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxChoicebook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxChoicebook_SetImageList, + <>). + +%% @spec (This::wxChoicebook(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:cast(?wxChoicebook_SetPageSize, + <>). + +%% @spec (This::wxChoicebook(), N::integer(), ImageId::integer()) -> bool() +%% @doc See external documentation. +setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId) + when is_integer(N),is_integer(ImageId) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_SetPageImage, + <>). + +%% @spec (This::wxChoicebook(), N::integer(), StrText::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> integer() +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_SetSelection, + <>). + +%% @spec (This::wxChoicebook(), N::integer()) -> integer() +%% @doc See external documentation. +changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxChoicebook), + wxe_util:call(?wxChoicebook_ChangeSelection, + <>). + +%% @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: wxClientDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindowDC} +%%
{@link wxDC} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxClientDC_new_0, + <<>>). + +%% @spec (Win::wxWindow:wxWindow()) -> wxClientDC() +%% @doc See external documentation. +new(#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(WinT,wxWindow), + wxe_util:construct(?wxClientDC_new_1, + <>). + +%% @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: wxClipboard. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxClipboard_new, + <<>>). + +%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() +%% @doc See external documentation. +addData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> + ?CLASS(ThisT,wxClipboard), + ?CLASS(DataT,wxDataObject), + wxe_util:call(?wxClipboard_AddData, + <>). + +%% @spec (This::wxClipboard()) -> ok +%% @doc See external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxClipboard), + wxe_util:cast(?wxClipboard_Clear, + <>). + +%% @spec (This::wxClipboard()) -> ok +%% @doc See external documentation. +close(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxClipboard), + wxe_util:cast(?wxClipboard_Close, + <>). + +%% @spec (This::wxClipboard()) -> bool() +%% @doc See external documentation. +flush(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxClipboard), + wxe_util:call(?wxClipboard_Flush, + <>). + +%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() +%% @doc See external documentation. +getData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> + ?CLASS(ThisT,wxClipboard), + ?CLASS(DataT,wxDataObject), + wxe_util:call(?wxClipboard_GetData, + <>). + +%% @spec (This::wxClipboard()) -> bool() +%% @doc See external documentation. +isOpened(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxClipboard), + wxe_util:call(?wxClipboard_IsOpened, + <>). + +%% @spec (This::wxClipboard()) -> bool() +%% @doc See external documentation. +open(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxClipboard), + wxe_util:call(?wxClipboard_Open, + <>). + +%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() +%% @doc See external documentation. +setData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> + ?CLASS(ThisT,wxClipboard), + ?CLASS(DataT,wxDataObject), + wxe_util:call(?wxClipboard_SetData, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxClipboard(), Format::integer()) -> bool() +%% @doc See external documentation. +isSupported(#wx_ref{type=ThisT,ref=ThisRef},Format) + when is_integer(Format) -> + ?CLASS(ThisT,wxClipboard), + wxe_util:call(?wxClipboard_IsSupported, + <>). + +%% @spec () -> wxClipboard() +%% @doc See external documentation. +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: wxCloseEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
close_window, end_session, query_end_session
+%% See also the message variant {@link wxEvtHandler:wxClose(). #wxClose{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +canVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCloseEvent), + wxe_util:call(?wxCloseEvent_CanVeto, + <>). + +%% @spec (This::wxCloseEvent()) -> bool() +%% @doc See external documentation. +getLoggingOff(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCloseEvent), + wxe_util:call(?wxCloseEvent_GetLoggingOff, + <>). + +%% @spec (This::wxCloseEvent(), CanVeto::bool()) -> ok +%% @doc See external documentation. +setCanVeto(#wx_ref{type=ThisT,ref=ThisRef},CanVeto) + when is_boolean(CanVeto) -> + ?CLASS(ThisT,wxCloseEvent), + wxe_util:cast(?wxCloseEvent_SetCanVeto, + <>). + +%% @spec (This::wxCloseEvent(), LogOff::bool()) -> ok +%% @doc See external documentation. +setLoggingOff(#wx_ref{type=ThisT,ref=ThisRef},LogOff) + when is_boolean(LogOff) -> + ?CLASS(ThisT,wxCloseEvent), + wxe_util:cast(?wxCloseEvent_SetLoggingOff, + <>). + +%% @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 external documentation. +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, + <>). + + %% 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: wxColourData. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxColourData_new_0, + <<>>). + +%% @spec (Data::wxColourData()) -> wxColourData() +%% @doc See external documentation. +new(#wx_ref{type=DataT,ref=DataRef}) -> + ?CLASS(DataT,wxColourData), + wxe_util:construct(?wxColourData_new_1, + <>). + +%% @spec (This::wxColourData()) -> bool() +%% @doc See external documentation. +getChooseFull(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxColourData), + wxe_util:call(?wxColourData_GetChooseFull, + <>). + +%% @spec (This::wxColourData()) -> wx:colour() +%% @doc See external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxColourData), + wxe_util:call(?wxColourData_GetColour, + <>). + +%% @spec (This::wxColourData(), I::integer()) -> wx:colour() +%% @doc See external documentation. +getCustomColour(#wx_ref{type=ThisT,ref=ThisRef},I) + when is_integer(I) -> + ?CLASS(ThisT,wxColourData), + wxe_util:call(?wxColourData_GetCustomColour, + <>). + +%% @spec (This::wxColourData(), Flag::bool()) -> ok +%% @doc See external documentation. +setChooseFull(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxColourData), + wxe_util:cast(?wxColourData_SetChooseFull, + <>). + +%% @spec (This::wxColourData(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxColourData(), I::integer(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxColourDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxColourDialog()) -> wxColourData:wxColourData() +%% @doc See external documentation. +getColourData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxColourDialog), + wxe_util:call(?wxColourDialog_GetColourData, + <>). + +%% @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: wxColourPickerCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxPickerBase} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxColourPickerCtrl()) -> wx:colour() +%% @doc See external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxColourPickerCtrl), + wxe_util:call(?wxColourPickerCtrl_GetColour, + <>). + +%% @spec (This::wxColourPickerCtrl(),X::string()|term()) -> bool()|ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setColour(This::wxColourPickerCtrl(), Text::string()) -> bool() +%%

+%%

+%% setColour(This::wxColourPickerCtrl(), Col::wx:colour()) -> ok +%%

+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, + <>); +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, + <>). + +%% @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: wxColourPickerEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_colourpicker_changed
+%% See also the message variant {@link wxEvtHandler:wxColourPicker(). #wxColourPicker{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxColourPickerEvent), + wxe_util:call(?wxColourPickerEvent_GetColour, + <>). + + %% 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: wxComboBox. +%%

This class is derived (and can use functions) from: +%%
{@link wxControlWithItems} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>|| 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 external documentation. +canCopy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_CanCopy, + <>). + +%% @spec (This::wxComboBox()) -> bool() +%% @doc See external documentation. +canCut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_CanCut, + <>). + +%% @spec (This::wxComboBox()) -> bool() +%% @doc See external documentation. +canPaste(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_CanPaste, + <>). + +%% @spec (This::wxComboBox()) -> bool() +%% @doc See external documentation. +canRedo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_CanRedo, + <>). + +%% @spec (This::wxComboBox()) -> bool() +%% @doc See external documentation. +canUndo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_CanUndo, + <>). + +%% @spec (This::wxComboBox()) -> ok +%% @doc See external documentation. +copy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_Copy, + <>). + +%% @spec (This::wxComboBox()) -> ok +%% @doc See external documentation. +cut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_Cut, + <>). + +%% @spec (This::wxComboBox()) -> integer() +%% @doc See external documentation. +getInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_GetInsertionPoint, + <>). + +%% @spec (This::wxComboBox()) -> integer() +%% @doc See external documentation. +getLastPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_GetLastPosition, + <>). + +%% @spec (This::wxComboBox()) -> string() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:call(?wxComboBox_GetValue, + <>). + +%% @spec (This::wxComboBox()) -> ok +%% @doc See external documentation. +paste(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_Paste, + <>). + +%% @spec (This::wxComboBox()) -> ok +%% @doc See external documentation. +redo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_Redo, + <>). + +%% @spec (This::wxComboBox(), From::integer(), To::integer(), Value::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxComboBox(), From::integer(), To::integer()) -> ok +%% @doc See external documentation. +remove(#wx_ref{type=ThisT,ref=ThisRef},From,To) + when is_integer(From),is_integer(To) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_Remove, + <>). + +%% @spec (This::wxComboBox(), Pos::integer()) -> ok +%% @doc See external documentation. +setInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_SetInsertionPoint, + <>). + +%% @spec (This::wxComboBox()) -> ok +%% @doc See external documentation. +setInsertionPointEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_SetInsertionPointEnd, + <>). + +%% @spec (This::wxComboBox(), N::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_SetSelection_1, + <>). + +%% @spec (This::wxComboBox(), From::integer(), To::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxComboBox(), Value::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxComboBox()) -> ok +%% @doc See external documentation. +undo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxComboBox), + wxe_util:cast(?wxComboBox_Undo, + <>). + +%% @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: wxCommandEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_button_clicked, command_checkbox_clicked, command_choice_selected, command_listbox_selected, command_listbox_doubleclicked, command_text_updated, command_text_enter, command_menu_selected, command_slider_updated, command_radiobox_selected, command_radiobutton_selected, command_scrollbar_updated, command_vlbox_selected, command_combobox_selected, command_tool_rclicked, command_tool_enter, command_checklistbox_toggled, command_togglebutton_clicked, command_left_click, command_left_dclick, command_right_click, command_set_focus, command_kill_focus, command_enter
+%% See also the message variant {@link wxEvtHandler:wxCommand(). #wxCommand{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getClientData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_getClientData, + <>). + +%% @spec (This::wxCommandEvent()) -> integer() +%% @doc See external documentation. +getExtraLong(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_GetExtraLong, + <>). + +%% @spec (This::wxCommandEvent()) -> integer() +%% @doc See external documentation. +getInt(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_GetInt, + <>). + +%% @spec (This::wxCommandEvent()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_GetSelection, + <>). + +%% @spec (This::wxCommandEvent()) -> string() +%% @doc See external documentation. +getString(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_GetString, + <>). + +%% @spec (This::wxCommandEvent()) -> bool() +%% @doc See external documentation. +isChecked(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_IsChecked, + <>). + +%% @spec (This::wxCommandEvent()) -> bool() +%% @doc See external documentation. +isSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:call(?wxCommandEvent_IsSelection, + <>). + +%% @spec (This::wxCommandEvent(), I::integer()) -> ok +%% @doc See external documentation. +setInt(#wx_ref{type=ThisT,ref=ThisRef},I) + when is_integer(I) -> + ?CLASS(ThisT,wxCommandEvent), + wxe_util:cast(?wxCommandEvent_SetInt, + <>). + +%% @spec (This::wxCommandEvent(), S::string()) -> ok +%% @doc See external documentation. +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, + <>). + + %% 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: wxContextMenuEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
context_menu
+%% See also the message variant {@link wxEvtHandler:wxContextMenu(). #wxContextMenu{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxContextMenuEvent), + wxe_util:call(?wxContextMenuEvent_GetPosition, + <>). + +%% @spec (This::wxContextMenuEvent(), Pos::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +setPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY}) + when is_integer(PosX),is_integer(PosY) -> + ?CLASS(ThisT,wxContextMenuEvent), + wxe_util:cast(?wxContextMenuEvent_SetPosition, + <>). + + %% 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: wxControl. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxControl), + wxe_util:call(?wxControl_GetLabel, + <>). + +%% @spec (This::wxControl(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + + %% 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: wxControlWithItems. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems(), Item::string(), ClientData::term()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems(), Strings::[[string()]]) -> ok +%% @doc See external documentation. +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, + <>|| 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 external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:cast(?wxControlWithItems_Clear, + <>). + +%% @spec (This::wxControlWithItems(), N::integer()) -> ok +%% @doc See external documentation. +delete(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:cast(?wxControlWithItems_Delete, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems(), N::integer()) -> term() +%% @doc See external documentation. +getClientData(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:call(?wxControlWithItems_getClientData, + <>). + +%% @spec (This::wxControlWithItems(), N::integer(), ClientData::term()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems()) -> integer() +%% @doc See external documentation. +getCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:call(?wxControlWithItems_GetCount, + <>). + +%% @spec (This::wxControlWithItems()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:call(?wxControlWithItems_GetSelection, + <>). + +%% @spec (This::wxControlWithItems(), N::integer()) -> string() +%% @doc See external documentation. +getString(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:call(?wxControlWithItems_GetString, + <>). + +%% @spec (This::wxControlWithItems()) -> string() +%% @doc See external documentation. +getStringSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:call(?wxControlWithItems_GetStringSelection, + <>). + +%% @spec (This::wxControlWithItems(), Item::string(), Pos::integer()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems(), Item::string(), Pos::integer(), ClientData::term()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems()) -> bool() +%% @doc See external documentation. +isEmpty(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:call(?wxControlWithItems_IsEmpty, + <>). + +%% @spec (This::wxControlWithItems(), N::integer()) -> ok +%% @doc See external documentation. +select(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:cast(?wxControlWithItems_Select, + <>). + +%% @spec (This::wxControlWithItems(), N::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxControlWithItems), + wxe_util:cast(?wxControlWithItems_SetSelection, + <>). + +%% @spec (This::wxControlWithItems(), N::integer(), S::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxControlWithItems(), S::string()) -> bool() +%% @doc See external documentation. +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, + <>). + + %% 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: wxCursor. +%%

This class is derived (and can use functions) from: +%%
{@link wxBitmap} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxCursor_new_0, + <<>>). + +%% @spec (X::integer()|term()) -> wxCursor() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(CursorId::integer()) -> wxCursor() +%%

+%%

+%% new(Image::wxImage:wxImage()) -> wxCursor() +%%

+new(CursorId) + when is_integer(CursorId) -> + wxe_util:construct(?wxCursor_new_1_0, + <>); +new(#wx_ref{type=ImageT,ref=ImageRef}) -> + ?CLASS(ImageT,wxImage), + wxe_util:construct(?wxCursor_new_1_1, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxCursor()) -> bool() +%% @doc See external documentation. +ok(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxCursor), + wxe_util:call(?wxCursor_Ok, + <>). + +%% @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: wxDC. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDC(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +calcBoundingBox(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_CalcBoundingBox, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_Clear, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +computeScaleAndOrigin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_ComputeScaleAndOrigin, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +crossHair(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_CrossHair, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +destroyClippingRegion(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_DestroyClippingRegion, + <>). + +%% @spec (This::wxDC(), X::integer()) -> integer() +%% @doc See external documentation. +deviceToLogicalX(#wx_ref{type=ThisT,ref=ThisRef},X) + when is_integer(X) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_DeviceToLogicalX, + <>). + +%% @spec (This::wxDC(), X::integer()) -> integer() +%% @doc See external documentation. +deviceToLogicalXRel(#wx_ref{type=ThisT,ref=ThisRef},X) + when is_integer(X) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_DeviceToLogicalXRel, + <>). + +%% @spec (This::wxDC(), Y::integer()) -> integer() +%% @doc See external documentation. +deviceToLogicalY(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_DeviceToLogicalY, + <>). + +%% @spec (This::wxDC(), Y::integer()) -> integer() +%% @doc See external documentation. +deviceToLogicalYRel(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_DeviceToLogicalYRel, + <>). + +%% @spec (This::wxDC(), Pt1::{X::integer(),Y::integer()}, Pt2::{X::integer(),Y::integer()}, Centre::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Radius::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}, Sa::float(), Ea::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Icon::wxIcon:wxIcon(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDC(), Pt1::{X::integer(),Y::integer()}, Pt2::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <> || {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 external documentation. +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, + <> || {X,Y} <- Points>>)/binary, BinOpt/binary>>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +drawPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_DrawPoint, + <>). + +%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Text::string(), Pt::{X::integer(),Y::integer()}, Angle::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), R::{X::integer(),Y::integer(),W::integer(),H::integer()}, Radius::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}, Radius::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Text::string(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +endDoc(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_EndDoc, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +endPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_EndPage, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDC()) -> wxBrush:wxBrush() +%% @doc See external documentation. +getBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetBackground, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +getBackgroundMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetBackgroundMode, + <>). + +%% @spec (This::wxDC()) -> wxBrush:wxBrush() +%% @doc See external documentation. +getBrush(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetBrush, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +getCharHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetCharHeight, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +getCharWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetCharWidth, + <>). + +%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetFont, + <>). + +%% @spec (This::wxDC()) -> WxLayoutDirection +%% WxLayoutDirection = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +getLogicalFunction(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetLogicalFunction, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +getMapMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetMapMode, + <>). + +%% @spec (This::wxDC(), String::string()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), String::string(), [Option]) -> {Width::integer(),Height::integer(),HeightLine::integer()} +%% Option = {font, wxFont:wxFont()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Text::string(), Widths::[integer()]) -> bool() +%% @doc See external documentation. +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, + <> || C <- Widths>>)/binary, 0:(((1+length(Widths)) rem 2)*32)>>). + +%% @spec (This::wxDC()) -> wxPen:wxPen() +%% @doc See external documentation. +getPen(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetPen, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Col::wx:colour()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getPPI(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetPPI, + <>). + +%% @spec (This::wxDC()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetSize, + <>). + +%% @spec (This::wxDC()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSizeMM(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetSizeMM, + <>). + +%% @spec (This::wxDC()) -> wx:colour() +%% @doc See external documentation. +getTextBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetTextBackground, + <>). + +%% @spec (This::wxDC(), String::string()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), String::string(), [Option]) -> {X::integer(),Y::integer(),Descent::integer(),ExternalLeading::integer()} +%% Option = {theFont, wxFont:wxFont()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC()) -> wx:colour() +%% @doc See external documentation. +getTextForeground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetTextForeground, + <>). + +%% @spec (This::wxDC()) -> {X::float(),Y::float()} +%% @doc See external documentation. +getUserScale(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_GetUserScale, + <>). + +%% @spec (This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, InitialColour::wx:colour(), DestColour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxDC(), X::integer()) -> integer() +%% @doc See external documentation. +logicalToDeviceX(#wx_ref{type=ThisT,ref=ThisRef},X) + when is_integer(X) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_LogicalToDeviceX, + <>). + +%% @spec (This::wxDC(), X::integer()) -> integer() +%% @doc See external documentation. +logicalToDeviceXRel(#wx_ref{type=ThisT,ref=ThisRef},X) + when is_integer(X) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_LogicalToDeviceXRel, + <>). + +%% @spec (This::wxDC(), Y::integer()) -> integer() +%% @doc See external documentation. +logicalToDeviceY(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_LogicalToDeviceY, + <>). + +%% @spec (This::wxDC(), Y::integer()) -> integer() +%% @doc See external documentation. +logicalToDeviceYRel(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_LogicalToDeviceYRel, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +maxX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_MaxX, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +maxY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_MaxY, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +minX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_MinX, + <>). + +%% @spec (This::wxDC()) -> integer() +%% @doc See external documentation. +minY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_MinY, + <>). + +%% @spec (This::wxDC()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:call(?wxDC_IsOk, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +resetBoundingBox(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_ResetBoundingBox, + <>). + +%% @spec (This::wxDC(), XLeftRight::bool(), YBottomUp::bool()) -> ok +%% @doc See external documentation. +setAxisOrientation(#wx_ref{type=ThisT,ref=ThisRef},XLeftRight,YBottomUp) + when is_boolean(XLeftRight),is_boolean(YBottomUp) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_SetAxisOrientation, + <>). + +%% @spec (This::wxDC(), Brush::wxBrush:wxBrush()) -> ok +%% @doc See external documentation. +setBackground(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) -> + ?CLASS(ThisT,wxDC), + ?CLASS(BrushT,wxBrush), + wxe_util:cast(?wxDC_SetBackground, + <>). + +%% @spec (This::wxDC(), Mode::integer()) -> ok +%% @doc See external documentation. +setBackgroundMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_SetBackgroundMode, + <>). + +%% @spec (This::wxDC(), Brush::wxBrush:wxBrush()) -> ok +%% @doc See external documentation. +setBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) -> + ?CLASS(ThisT,wxDC), + ?CLASS(BrushT,wxBrush), + wxe_util:cast(?wxDC_SetBrush, + <>). + +%% @spec (This::wxDC(),X::term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setClippingRegion(This::wxDC(), Region::wxRegion:wxRegion()) -> ok +%%

+%%

+%% setClippingRegion(This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +setDeviceOrigin(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_SetDeviceOrigin, + <>). + +%% @spec (This::wxDC(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxDC), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxDC_SetFont, + <>). + +%% @spec (This::wxDC(), Dir::WxLayoutDirection) -> ok +%% WxLayoutDirection = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxDC(), Function::integer()) -> ok +%% @doc See external documentation. +setLogicalFunction(#wx_ref{type=ThisT,ref=ThisRef},Function) + when is_integer(Function) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_SetLogicalFunction, + <>). + +%% @spec (This::wxDC(), Mode::integer()) -> ok +%% @doc See external documentation. +setMapMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_SetMapMode, + <>). + +%% @spec (This::wxDC(), Palette::wxPalette:wxPalette()) -> ok +%% @doc See external documentation. +setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) -> + ?CLASS(ThisT,wxDC), + ?CLASS(PaletteT,wxPalette), + wxe_util:cast(?wxDC_SetPalette, + <>). + +%% @spec (This::wxDC(), Pen::wxPen:wxPen()) -> ok +%% @doc See external documentation. +setPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) -> + ?CLASS(ThisT,wxDC), + ?CLASS(PenT,wxPen), + wxe_util:cast(?wxDC_SetPen, + <>). + +%% @spec (This::wxDC(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC(), X::float(), Y::float()) -> ok +%% @doc See external documentation. +setUserScale(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_float(X),is_float(Y) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_SetUserScale, + <>). + +%% @spec (This::wxDC(), Message::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDC()) -> ok +%% @doc See external documentation. +startPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDC), + wxe_util:cast(?wxDC_StartPage, + <>). + 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: wxDataObject. +%% @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: wxDateEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
date_changed
+%% See also the message variant {@link wxEvtHandler:wxDate(). #wxDate{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getDate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDateEvent), + wxe_util:call(?wxDateEvent_GetDate, + <>). + + %% 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: wxDatePickerCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxPickerBase} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxDatePickerCtrl(), Dt1::wx:datetime(), Dt2::wx:datetime()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDatePickerCtrl()) -> wx:datetime() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDatePickerCtrl), + wxe_util:call(?wxDatePickerCtrl_GetValue, + <>). + +%% @spec (This::wxDatePickerCtrl(), Dt1::wx:datetime(), Dt2::wx:datetime()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDatePickerCtrl(), Date::wx:datetime()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},Date) + when tuple_size(Date) =:= 2 -> + ?CLASS(ThisT,wxDatePickerCtrl), + wxe_util:cast(?wxDatePickerCtrl_SetValue, + <>). + +%% @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: wxDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDialog(), Flags::integer()) -> wxSizer:wxSizer() +%% @doc See external documentation. +createButtonSizer(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxDialog), + wxe_util:call(?wxDialog_CreateButtonSizer, + <>). + +%% @spec (This::wxDialog(), Flags::integer()) -> wxStdDialogButtonSizer:wxStdDialogButtonSizer() +%% @doc See external documentation. +createStdDialogButtonSizer(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxDialog), + wxe_util:call(?wxDialog_CreateStdDialogButtonSizer, + <>). + +%% @spec (This::wxDialog(), RetCode::integer()) -> ok +%% @doc See external documentation. +endModal(#wx_ref{type=ThisT,ref=ThisRef},RetCode) + when is_integer(RetCode) -> + ?CLASS(ThisT,wxDialog), + wxe_util:cast(?wxDialog_EndModal, + <>). + +%% @spec (This::wxDialog()) -> integer() +%% @doc See external documentation. +getAffirmativeId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDialog), + wxe_util:call(?wxDialog_GetAffirmativeId, + <>). + +%% @spec (This::wxDialog()) -> integer() +%% @doc See external documentation. +getReturnCode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDialog), + wxe_util:call(?wxDialog_GetReturnCode, + <>). + +%% @spec (This::wxDialog()) -> bool() +%% @doc See external documentation. +isModal(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDialog), + wxe_util:call(?wxDialog_IsModal, + <>). + +%% @spec (This::wxDialog(), AffirmativeId::integer()) -> ok +%% @doc See external documentation. +setAffirmativeId(#wx_ref{type=ThisT,ref=ThisRef},AffirmativeId) + when is_integer(AffirmativeId) -> + ?CLASS(ThisT,wxDialog), + wxe_util:cast(?wxDialog_SetAffirmativeId, + <>). + +%% @spec (This::wxDialog(), ReturnCode::integer()) -> ok +%% @doc See external documentation. +setReturnCode(#wx_ref{type=ThisT,ref=ThisRef},ReturnCode) + when is_integer(ReturnCode) -> + ?CLASS(ThisT,wxDialog), + wxe_util:cast(?wxDialog_SetReturnCode, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDialog()) -> integer() +%% @doc See external documentation. +showModal(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDialog), + wxe_util:call(?wxDialog_ShowModal, + <>). + +%% @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: wxDirDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDirDialog()) -> string() +%% @doc See external documentation. +getPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDirDialog), + wxe_util:call(?wxDirDialog_GetPath, + <>). + +%% @spec (This::wxDirDialog()) -> string() +%% @doc See external documentation. +getMessage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDirDialog), + wxe_util:call(?wxDirDialog_GetMessage, + <>). + +%% @spec (This::wxDirDialog(), Message::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxDirDialog(), Path::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxDirPickerCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxPickerBase} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxDirPickerCtrl()) -> string() +%% @doc See external documentation. +getPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxDirPickerCtrl), + wxe_util:call(?wxDirPickerCtrl_GetPath, + <>). + +%% @spec (This::wxDirPickerCtrl(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxDisplayChangedEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
display_changed
+%% See also the message variant {@link wxEvtHandler:wxDisplayChanged(). #wxDisplayChanged{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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: wxEraseEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
erase_background
+%% See also the message variant {@link wxEvtHandler:wxErase(). #wxErase{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getDC(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEraseEvent), + wxe_util:call(?wxEraseEvent_GetDC, + <>). + + %% 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: wxEvent. +%% @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 external documentation. +getId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEvent), + wxe_util:call(?wxEvent_GetId, + <>). + +%% @spec (This::wxEvent()) -> bool() +%% @doc See external documentation. +getSkipped(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEvent), + wxe_util:call(?wxEvent_GetSkipped, + <>). + +%% @spec (This::wxEvent()) -> integer() +%% @doc See external documentation. +getTimestamp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEvent), + wxe_util:call(?wxEvent_GetTimestamp, + <>). + +%% @spec (This::wxEvent()) -> bool() +%% @doc See external documentation. +isCommandEvent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEvent), + wxe_util:call(?wxEvent_IsCommandEvent, + <>). + +%% @spec (This::wxEvent(), PropagationLevel::integer()) -> ok +%% @doc See external documentation. +resumePropagation(#wx_ref{type=ThisT,ref=ThisRef},PropagationLevel) + when is_integer(PropagationLevel) -> + ?CLASS(ThisT,wxEvent), + wxe_util:cast(?wxEvent_ResumePropagation, + <>). + +%% @spec (This::wxEvent()) -> bool() +%% @doc See external documentation. +shouldPropagate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEvent), + wxe_util:call(?wxEvent_ShouldPropagate, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxEvent()) -> integer() +%% @doc See external documentation. +stopPropagation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxEvent), + wxe_util:call(?wxEvent_StopPropagation, + <>). + 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. +%% +%% +%% The orginal documentation. +%% +%% @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 external documentation +%% 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, <>). + +%% @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, <>). + +%% @hidden +new_evt_listener() -> + wxe_util:call(98, <<>>). + +%% @hidden +destroy_evt_listener(#wx_ref{type=wxeEvtListener,ref=EvtList}) -> + wxe_util:call(99, <>). + +%% @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: wxFileDataObject. +%%

This class is derived (and can use functions) from: +%%
{@link wxDataObject} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxFileDataObject_new, + <<>>). + +%% @spec (This::wxFileDataObject(), Filename::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFileDataObject()) -> [[string()]] +%% @doc See external documentation. +getFilenames(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDataObject), + wxe_util:call(?wxFileDataObject_GetFilenames, + <>). + +%% @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: wxFileDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFileDialog()) -> string() +%% @doc See external documentation. +getDirectory(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetDirectory, + <>). + +%% @spec (This::wxFileDialog()) -> string() +%% @doc See external documentation. +getFilename(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetFilename, + <>). + +%% @spec (This::wxFileDialog()) -> [[string()]] +%% @doc See external documentation. +getFilenames(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetFilenames, + <>). + +%% @spec (This::wxFileDialog()) -> integer() +%% @doc See external documentation. +getFilterIndex(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetFilterIndex, + <>). + +%% @spec (This::wxFileDialog()) -> string() +%% @doc See external documentation. +getMessage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetMessage, + <>). + +%% @spec (This::wxFileDialog()) -> string() +%% @doc See external documentation. +getPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetPath, + <>). + +%% @spec (This::wxFileDialog(), Paths::[[string()]]) -> ok +%% @doc See external documentation. +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, + <>|| 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 external documentation. +getWildcard(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:call(?wxFileDialog_GetWildcard, + <>). + +%% @spec (This::wxFileDialog(), Dir::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFileDialog(), Name::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFileDialog(), FilterIndex::integer()) -> ok +%% @doc See external documentation. +setFilterIndex(#wx_ref{type=ThisT,ref=ThisRef},FilterIndex) + when is_integer(FilterIndex) -> + ?CLASS(ThisT,wxFileDialog), + wxe_util:cast(?wxFileDialog_SetFilterIndex, + <>). + +%% @spec (This::wxFileDialog(), Message::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFileDialog(), Path::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFileDialog(), WildCard::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxFileDirPickerEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_filepicker_changed, command_dirpicker_changed
+%% See also the message variant {@link wxEvtHandler:wxFileDirPicker(). #wxFileDirPicker{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFileDirPickerEvent), + wxe_util:call(?wxFileDirPickerEvent_GetPath, + <>). + + %% 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: wxFilePickerCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxPickerBase} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFilePickerCtrl()) -> string() +%% @doc See external documentation. +getPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFilePickerCtrl), + wxe_util:call(?wxFilePickerCtrl_GetPath, + <>). + +%% @spec (This::wxFilePickerCtrl(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxFindReplaceData. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxFindReplaceData_new_0, + <<>>). + +%% @spec (Flags::integer()) -> wxFindReplaceData() +%% @doc See external documentation. +new(Flags) + when is_integer(Flags) -> + wxe_util:construct(?wxFindReplaceData_new_1, + <>). + +%% @spec (This::wxFindReplaceData()) -> string() +%% @doc See external documentation. +getFindString(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFindReplaceData), + wxe_util:call(?wxFindReplaceData_GetFindString, + <>). + +%% @spec (This::wxFindReplaceData()) -> string() +%% @doc See external documentation. +getReplaceString(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFindReplaceData), + wxe_util:call(?wxFindReplaceData_GetReplaceString, + <>). + +%% @spec (This::wxFindReplaceData()) -> integer() +%% @doc See external documentation. +getFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFindReplaceData), + wxe_util:call(?wxFindReplaceData_GetFlags, + <>). + +%% @spec (This::wxFindReplaceData(), Flags::integer()) -> ok +%% @doc See external documentation. +setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxFindReplaceData), + wxe_util:cast(?wxFindReplaceData_SetFlags, + <>). + +%% @spec (This::wxFindReplaceData(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFindReplaceData(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxFindReplaceDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFindReplaceDialog()) -> wxFindReplaceData:wxFindReplaceData() +%% @doc See external documentation. +getData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFindReplaceDialog), + wxe_util:call(?wxFindReplaceDialog_GetData, + <>). + +%% @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: wxFlexGridSizer. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridSizer} +%%
{@link wxSizer} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (Rows::integer(), Cols::integer(), Vgap::integer(), Hgap::integer()) -> wxFlexGridSizer() +%% @doc See external documentation. +new(Rows,Cols,Vgap,Hgap) + when is_integer(Rows),is_integer(Cols),is_integer(Vgap),is_integer(Hgap) -> + wxe_util:construct(?wxFlexGridSizer_new_4, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFlexGridSizer()) -> integer() +%% @doc See external documentation. +getFlexibleDirection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFlexGridSizer), + wxe_util:call(?wxFlexGridSizer_GetFlexibleDirection, + <>). + +%% @spec (This::wxFlexGridSizer()) -> WxFlexSizerGrowMode +%% WxFlexSizerGrowMode = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxFlexGridSizer(), Idx::integer()) -> ok +%% @doc See external documentation. +removeGrowableCol(#wx_ref{type=ThisT,ref=ThisRef},Idx) + when is_integer(Idx) -> + ?CLASS(ThisT,wxFlexGridSizer), + wxe_util:cast(?wxFlexGridSizer_RemoveGrowableCol, + <>). + +%% @spec (This::wxFlexGridSizer(), Idx::integer()) -> ok +%% @doc See external documentation. +removeGrowableRow(#wx_ref{type=ThisT,ref=ThisRef},Idx) + when is_integer(Idx) -> + ?CLASS(ThisT,wxFlexGridSizer), + wxe_util:cast(?wxFlexGridSizer_RemoveGrowableRow, + <>). + +%% @spec (This::wxFlexGridSizer(), Direction::integer()) -> ok +%% @doc See external documentation. +setFlexibleDirection(#wx_ref{type=ThisT,ref=ThisRef},Direction) + when is_integer(Direction) -> + ?CLASS(ThisT,wxFlexGridSizer), + wxe_util:cast(?wxFlexGridSizer_SetFlexibleDirection, + <>). + +%% @spec (This::wxFlexGridSizer(), Mode::WxFlexSizerGrowMode) -> ok +%% WxFlexSizerGrowMode = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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: wxFocusEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
set_focus, kill_focus
+%% See also the message variant {@link wxEvtHandler:wxFocus(). #wxFocus{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFocusEvent), + wxe_util:call(?wxFocusEvent_GetWindow, + <>). + + %% 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: wxFont. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxFont_new_0, + <<>>). + +%% @spec (Fontname::string()) -> wxFont() +%% @doc See external documentation. +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 external documentation. +%%
WxFontFamily is one of ?wxFONTFAMILY_DEFAULT | ?wxFONTFAMILY_DECORATIVE | ?wxFONTFAMILY_ROMAN | ?wxFONTFAMILY_SCRIPT | ?wxFONTFAMILY_SWISS | ?wxFONTFAMILY_MODERN | ?wxFONTFAMILY_TELETYPE | ?wxFONTFAMILY_MAX | ?wxFONTFAMILY_UNKNOWN +%%
WxFontStyle is one of ?wxFONTSTYLE_NORMAL | ?wxFONTSTYLE_ITALIC | ?wxFONTSTYLE_SLANT | ?wxFONTSTYLE_MAX +%%
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, + <>). + +%% @spec (This::wxFont()) -> bool() +%% @doc See external documentation. +isFixedWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_IsFixedWidth, + <>). + +%% @spec () -> WxFontEncoding +%% WxFontEncoding = integer() +%% @doc See external documentation. +%%
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 external documentation. +getFaceName(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_GetFaceName, + <>). + +%% @spec (This::wxFont()) -> WxFontFamily +%% WxFontFamily = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxFont()) -> string() +%% @doc See external documentation. +getNativeFontInfoDesc(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_GetNativeFontInfoDesc, + <>). + +%% @spec (This::wxFont()) -> string() +%% @doc See external documentation. +getNativeFontInfoUserDesc(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_GetNativeFontInfoUserDesc, + <>). + +%% @spec (This::wxFont()) -> integer() +%% @doc See external documentation. +getPointSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_GetPointSize, + <>). + +%% @spec (This::wxFont()) -> WxFontStyle +%% WxFontStyle = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxFont()) -> bool() +%% @doc See external documentation. +getUnderlined(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_GetUnderlined, + <>). + +%% @spec (This::wxFont()) -> integer() +%% @doc See external documentation. +getWeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_GetWeight, + <>). + +%% @spec (This::wxFont()) -> bool() +%% @doc See external documentation. +ok(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFont), + wxe_util:call(?wxFont_Ok, + <>). + +%% @spec (Encoding::WxFontEncoding) -> ok +%% WxFontEncoding = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxFont(), FaceName::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFont(), Family::WxFontFamily) -> ok +%% WxFontFamily = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxFont(), PointSize::integer()) -> ok +%% @doc See external documentation. +setPointSize(#wx_ref{type=ThisT,ref=ThisRef},PointSize) + when is_integer(PointSize) -> + ?CLASS(ThisT,wxFont), + wxe_util:cast(?wxFont_SetPointSize, + <>). + +%% @spec (This::wxFont(), Style::WxFontStyle) -> ok +%% WxFontStyle = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxFont(), Underlined::bool()) -> ok +%% @doc See external documentation. +setUnderlined(#wx_ref{type=ThisT,ref=ThisRef},Underlined) + when is_boolean(Underlined) -> + ?CLASS(ThisT,wxFont), + wxe_util:cast(?wxFont_SetUnderlined, + <>). + +%% @spec (This::wxFont(), Weight::integer()) -> ok +%% @doc See external documentation. +setWeight(#wx_ref{type=ThisT,ref=ThisRef},Weight) + when is_integer(Weight) -> + ?CLASS(ThisT,wxFont), + wxe_util:cast(?wxFont_SetWeight, + <>). + +%% @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: wxFontData. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxFontData_new_0, + <<>>). + +%% @spec (Data::wxFontData()) -> wxFontData() +%% @doc See external documentation. +new(#wx_ref{type=DataT,ref=DataRef}) -> + ?CLASS(DataT,wxFontData), + wxe_util:construct(?wxFontData_new_1, + <>). + +%% @spec (This::wxFontData(), Flag::bool()) -> ok +%% @doc See external documentation. +enableEffects(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxFontData), + wxe_util:cast(?wxFontData_EnableEffects, + <>). + +%% @spec (This::wxFontData()) -> bool() +%% @doc See external documentation. +getAllowSymbols(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontData), + wxe_util:call(?wxFontData_GetAllowSymbols, + <>). + +%% @spec (This::wxFontData()) -> wx:colour() +%% @doc See external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontData), + wxe_util:call(?wxFontData_GetColour, + <>). + +%% @spec (This::wxFontData()) -> wxFont:wxFont() +%% @doc See external documentation. +getChosenFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontData), + wxe_util:call(?wxFontData_GetChosenFont, + <>). + +%% @spec (This::wxFontData()) -> bool() +%% @doc See external documentation. +getEnableEffects(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontData), + wxe_util:call(?wxFontData_GetEnableEffects, + <>). + +%% @spec (This::wxFontData()) -> wxFont:wxFont() +%% @doc See external documentation. +getInitialFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontData), + wxe_util:call(?wxFontData_GetInitialFont, + <>). + +%% @spec (This::wxFontData()) -> bool() +%% @doc See external documentation. +getShowHelp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontData), + wxe_util:call(?wxFontData_GetShowHelp, + <>). + +%% @spec (This::wxFontData(), Flag::bool()) -> ok +%% @doc See external documentation. +setAllowSymbols(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxFontData), + wxe_util:cast(?wxFontData_SetAllowSymbols, + <>). + +%% @spec (This::wxFontData(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setChosenFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxFontData), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxFontData_SetChosenFont, + <>). + +%% @spec (This::wxFontData(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFontData(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setInitialFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxFontData), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxFontData_SetInitialFont, + <>). + +%% @spec (This::wxFontData(), MinRange::integer(), MaxRange::integer()) -> ok +%% @doc See external documentation. +setRange(#wx_ref{type=ThisT,ref=ThisRef},MinRange,MaxRange) + when is_integer(MinRange),is_integer(MaxRange) -> + ?CLASS(ThisT,wxFontData), + wxe_util:cast(?wxFontData_SetRange, + <>). + +%% @spec (This::wxFontData(), Flag::bool()) -> ok +%% @doc See external documentation. +setShowHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxFontData), + wxe_util:cast(?wxFontData_SetShowHelp, + <>). + +%% @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: wxFontDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxFontDialog_new_0, + <<>>). + +%% @spec (Parent::wxWindow:wxWindow(), Data::wxFontData:wxFontData()) -> wxFontDialog() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFontDialog(), Parent::wxWindow:wxWindow(), Data::wxFontData:wxFontData()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxFontDialog()) -> wxFontData:wxFontData() +%% @doc See external documentation. +getFontData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontDialog), + wxe_util:call(?wxFontDialog_GetFontData, + <>). + +%% @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: wxFontPickerCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxPickerBase} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFontPickerCtrl()) -> wxFont:wxFont() +%% @doc See external documentation. +getSelectedFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontPickerCtrl), + wxe_util:call(?wxFontPickerCtrl_GetSelectedFont, + <>). + +%% @spec (This::wxFontPickerCtrl(), F::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setSelectedFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FT,ref=FRef}) -> + ?CLASS(ThisT,wxFontPickerCtrl), + ?CLASS(FT,wxFont), + wxe_util:cast(?wxFontPickerCtrl_SetSelectedFont, + <>). + +%% @spec (This::wxFontPickerCtrl()) -> integer() +%% @doc See external documentation. +getMaxPointSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontPickerCtrl), + wxe_util:call(?wxFontPickerCtrl_GetMaxPointSize, + <>). + +%% @spec (This::wxFontPickerCtrl(), Max::integer()) -> ok +%% @doc See external documentation. +setMaxPointSize(#wx_ref{type=ThisT,ref=ThisRef},Max) + when is_integer(Max) -> + ?CLASS(ThisT,wxFontPickerCtrl), + wxe_util:cast(?wxFontPickerCtrl_SetMaxPointSize, + <>). + +%% @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: wxFontPickerEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_fontpicker_changed
+%% See also the message variant {@link wxEvtHandler:wxFontPicker(). #wxFontPicker{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFontPickerEvent), + wxe_util:call(?wxFontPickerEvent_GetFont, + <>). + + %% 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: wxFrame. +%%

This class is derived (and can use functions) from: +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFrame()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getClientAreaOrigin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFrame), + wxe_util:call(?wxFrame_GetClientAreaOrigin, + <>). + +%% @spec (This::wxFrame()) -> wxMenuBar:wxMenuBar() +%% @doc See external documentation. +getMenuBar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFrame), + wxe_util:call(?wxFrame_GetMenuBar, + <>). + +%% @spec (This::wxFrame()) -> wxStatusBar:wxStatusBar() +%% @doc See external documentation. +getStatusBar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFrame), + wxe_util:call(?wxFrame_GetStatusBar, + <>). + +%% @spec (This::wxFrame()) -> integer() +%% @doc See external documentation. +getStatusBarPane(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFrame), + wxe_util:call(?wxFrame_GetStatusBarPane, + <>). + +%% @spec (This::wxFrame()) -> wxToolBar:wxToolBar() +%% @doc See external documentation. +getToolBar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFrame), + wxe_util:call(?wxFrame_GetToolBar, + <>). + +%% @spec (This::wxFrame(), Winid::integer()) -> bool() +%% @doc See external documentation. +processCommand(#wx_ref{type=ThisT,ref=ThisRef},Winid) + when is_integer(Winid) -> + ?CLASS(ThisT,wxFrame), + wxe_util:call(?wxFrame_ProcessCommand, + <>). + +%% @spec (This::wxFrame()) -> ok +%% @doc See external documentation. +sendSizeEvent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxFrame), + wxe_util:cast(?wxFrame_SendSizeEvent, + <>). + +%% @spec (This::wxFrame(), Menubar::wxMenuBar:wxMenuBar()) -> ok +%% @doc See external documentation. +setMenuBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenubarT,ref=MenubarRef}) -> + ?CLASS(ThisT,wxFrame), + ?CLASS(MenubarT,wxMenuBar), + wxe_util:cast(?wxFrame_SetMenuBar, + <>). + +%% @spec (This::wxFrame(), Statbar::wxStatusBar:wxStatusBar()) -> ok +%% @doc See external documentation. +setStatusBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=StatbarT,ref=StatbarRef}) -> + ?CLASS(ThisT,wxFrame), + ?CLASS(StatbarT,wxStatusBar), + wxe_util:cast(?wxFrame_SetStatusBar, + <>). + +%% @spec (This::wxFrame(), N::integer()) -> ok +%% @doc See external documentation. +setStatusBarPane(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxFrame), + wxe_util:cast(?wxFrame_SetStatusBarPane, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxFrame(), Widths_field::[integer()]) -> ok +%% @doc See external documentation. +setStatusWidths(#wx_ref{type=ThisT,ref=ThisRef},Widths_field) + when is_list(Widths_field) -> + ?CLASS(ThisT,wxFrame), + wxe_util:cast(?wxFrame_SetStatusWidths, + <> || C <- Widths_field>>)/binary, 0:(((0+length(Widths_field)) rem 2)*32)>>). + +%% @spec (This::wxFrame(), Toolbar::wxToolBar:wxToolBar()) -> ok +%% @doc See external documentation. +setToolBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ToolbarT,ref=ToolbarRef}) -> + ?CLASS(ThisT,wxFrame), + ?CLASS(ToolbarT,wxToolBar), + wxe_util:cast(?wxFrame_SetToolBar, + <>). + +%% @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: wxGBSizerItem. +%%

This class is derived (and can use functions) from: +%%
{@link wxSizerItem} +%%

+%% @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: wxGLCanvas. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +%%
Alternatives: +%%

+%% new(Parent::wxWindow:wxWindow(), Shared::wxGLContext:wxGLContext() | wxGLCanvas()) -> new(Parent,Shared, [])

+%%

+%% new(Parent::wxWindow:wxWindow(), [Option]) -> wxGLCanvas() +%%
Option = {id, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {name, string()} | {attribList, [integer()]} | {palette, wxPalette:wxPalette()} +%%

+ +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 <- 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, + <>). + +%% @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 external documentation. +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 <- 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, + <>). + +%% @spec (This::wxGLCanvas()) -> wxGLContext:wxGLContext() +%% @doc See external documentation. +getContext(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGLCanvas), + wxe_util:call(?wxGLCanvas_GetContext, + <>). + +%% @spec (This::wxGLCanvas()) -> ok +%% @doc See external documentation. +setCurrent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGLCanvas), + wxe_util:cast(?wxGLCanvas_SetCurrent, + <>). + +%% @spec (This::wxGLCanvas()) -> ok +%% @doc See external documentation. +swapBuffers(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGLCanvas), + wxe_util:cast(?wxGLCanvas_SwapBuffers, + <>). + +%% @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: wxGauge. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGauge()) -> integer() +%% @doc See external documentation. +getBezelFace(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGauge), + wxe_util:call(?wxGauge_GetBezelFace, + <>). + +%% @spec (This::wxGauge()) -> integer() +%% @doc See external documentation. +getRange(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGauge), + wxe_util:call(?wxGauge_GetRange, + <>). + +%% @spec (This::wxGauge()) -> integer() +%% @doc See external documentation. +getShadowWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGauge), + wxe_util:call(?wxGauge_GetShadowWidth, + <>). + +%% @spec (This::wxGauge()) -> integer() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGauge), + wxe_util:call(?wxGauge_GetValue, + <>). + +%% @spec (This::wxGauge()) -> bool() +%% @doc See external documentation. +isVertical(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGauge), + wxe_util:call(?wxGauge_IsVertical, + <>). + +%% @spec (This::wxGauge(), W::integer()) -> ok +%% @doc See external documentation. +setBezelFace(#wx_ref{type=ThisT,ref=ThisRef},W) + when is_integer(W) -> + ?CLASS(ThisT,wxGauge), + wxe_util:cast(?wxGauge_SetBezelFace, + <>). + +%% @spec (This::wxGauge(), R::integer()) -> ok +%% @doc See external documentation. +setRange(#wx_ref{type=ThisT,ref=ThisRef},R) + when is_integer(R) -> + ?CLASS(ThisT,wxGauge), + wxe_util:cast(?wxGauge_SetRange, + <>). + +%% @spec (This::wxGauge(), W::integer()) -> ok +%% @doc See external documentation. +setShadowWidth(#wx_ref{type=ThisT,ref=ThisRef},W) + when is_integer(W) -> + ?CLASS(ThisT,wxGauge), + wxe_util:cast(?wxGauge_SetShadowWidth, + <>). + +%% @spec (This::wxGauge(), Pos::integer()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxGauge), + wxe_util:cast(?wxGauge_SetValue, + <>). + +%% @spec (This::wxGauge()) -> ok +%% @doc See external documentation. +pulse(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGauge), + wxe_util:cast(?wxGauge_Pulse, + <>). + +%% @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: wxGenericDirCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> ok +%% @doc See external documentation. +init(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:cast(?wxGenericDirCtrl_Init, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> ok +%% @doc See external documentation. +collapseTree(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:cast(?wxGenericDirCtrl_CollapseTree, + <>). + +%% @spec (This::wxGenericDirCtrl(), Path::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> string() +%% @doc See external documentation. +getDefaultPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetDefaultPath, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> string() +%% @doc See external documentation. +getPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetPath, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> string() +%% @doc See external documentation. +getFilePath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetFilePath, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> string() +%% @doc See external documentation. +getFilter(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetFilter, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> integer() +%% @doc See external documentation. +getFilterIndex(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetFilterIndex, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> wxTreeItemId() +%% @doc See external documentation. +getRootId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetRootId, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> wxTreeCtrl:wxTreeCtrl() +%% @doc See external documentation. +getTreeCtrl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:call(?wxGenericDirCtrl_GetTreeCtrl, + <>). + +%% @spec (This::wxGenericDirCtrl()) -> ok +%% @doc See external documentation. +reCreateTree(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:cast(?wxGenericDirCtrl_ReCreateTree, + <>). + +%% @spec (This::wxGenericDirCtrl(), Path::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGenericDirCtrl(), Filter::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGenericDirCtrl(), N::integer()) -> ok +%% @doc See external documentation. +setFilterIndex(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxGenericDirCtrl), + wxe_util:cast(?wxGenericDirCtrl_SetFilterIndex, + <>). + +%% @spec (This::wxGenericDirCtrl(), Path::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxGraphicsBrush. +%%

This class is derived (and can use functions) from: +%%
{@link wxGraphicsObject} +%%

+%% @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: wxGraphicsContext. +%%

This class is derived (and can use functions) from: +%%
{@link wxGraphicsObject} +%%

+%% @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 external documentation. +create() -> + wxe_util:call(?wxGraphicsContext_Create_0, + <<>>). + +%% @spec (Dc::wxWindowDC:wxWindowDC() | wxWindow:wxWindow()) -> wxGraphicsContext() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Pen::wxPen:wxPen()) -> wxGraphicsPen:wxGraphicsPen() +%% @doc See external documentation. +createPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + ?CLASS(PenT,wxPen), + wxe_util:call(?wxGraphicsContext_CreatePen, + <>). + +%% @spec (This::wxGraphicsContext(), Brush::wxBrush:wxBrush()) -> wxGraphicsBrush:wxGraphicsBrush() +%% @doc See external documentation. +createBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + ?CLASS(BrushT,wxBrush), + wxe_util:call(?wxGraphicsContext_CreateBrush, + <>). + +%% @spec (This::wxGraphicsContext(), Xo::float(), Yo::float(), Xc::float(), Yc::float(), Radius::float(), OColor::wx:colour(), CColor::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float(), C1::wx:colour(), C2::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext()) -> wxGraphicsPath:wxGraphicsPath() +%% @doc See external documentation. +createPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:call(?wxGraphicsContext_CreatePath, + <>). + +%% @spec (This::wxGraphicsContext(), Region::wxRegion:wxRegion()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext()) -> ok +%% @doc See external documentation. +resetClip(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:cast(?wxGraphicsContext_ResetClip, + <>). + +%% @spec (This::wxGraphicsContext(), Bmp::wxBitmap:wxBitmap(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Icon::wxIcon:wxIcon(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Str::string(), X::float(), Y::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(),Str::string(),X::float(),Y::float(),X::float()|term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float()) -> ok +%%

+%%

+%% drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok +%% @doc See external documentation. +strokePath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + ?CLASS(PathT,wxGraphicsPath), + wxe_util:cast(?wxGraphicsContext_StrokePath, + <>). + +%% @spec (This::wxGraphicsContext()) -> ok +%% @doc See external documentation. +getNativeContext(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:cast(?wxGraphicsContext_GetNativeContext, + <>). + +%% @spec (This::wxGraphicsContext(), Text::string(), Widths::[float()]) -> ok +%% @doc See external documentation. +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, + <> || C <- Widths>>)/binary>>). + +%% @spec (This::wxGraphicsContext(), Text::string()) -> {Width::float(),Height::float(),Descent::float(),ExternalLeading::float()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Angle::float()) -> ok +%% @doc See external documentation. +rotate(#wx_ref{type=ThisT,ref=ThisRef},Angle) + when is_float(Angle) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:cast(?wxGraphicsContext_Rotate, + <>). + +%% @spec (This::wxGraphicsContext(), XScale::float(), YScale::float()) -> ok +%% @doc See external documentation. +scale(#wx_ref{type=ThisT,ref=ThisRef},XScale,YScale) + when is_float(XScale),is_float(YScale) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:cast(?wxGraphicsContext_Scale, + <>). + +%% @spec (This::wxGraphicsContext(), Dx::float(), Dy::float()) -> ok +%% @doc See external documentation. +translate(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy) + when is_float(Dx),is_float(Dy) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:cast(?wxGraphicsContext_Translate, + <>). + +%% @spec (This::wxGraphicsContext()) -> wxGraphicsMatrix:wxGraphicsMatrix() +%% @doc See external documentation. +getTransform(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + wxe_util:call(?wxGraphicsContext_GetTransform, + <>). + +%% @spec (This::wxGraphicsContext(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok +%% @doc See external documentation. +setTransform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + ?CLASS(MatrixT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsContext_SetTransform, + <>). + +%% @spec (This::wxGraphicsContext(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok +%% @doc See external documentation. +concatTransform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) -> + ?CLASS(ThisT,wxGraphicsContext), + ?CLASS(MatrixT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsContext_ConcatTransform, + <>). + +%% @spec (This::wxGraphicsContext(), Brush::wxGraphicsBrush:wxGraphicsBrush() | wxBrush:wxBrush()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Font::wxGraphicsFont:wxGraphicsFont()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), Pen::wxPen:wxPen() | wxGraphicsPen:wxGraphicsPen()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsContext(), N::integer(), BeginPoints::{X::float(),Y::float()}, EndPoints::{X::float(),Y::float()}) -> ok +%% @doc See external documentation. +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, + <>). + + %% 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: wxGraphicsFont. +%%

This class is derived (and can use functions) from: +%%
{@link wxGraphicsObject} +%%

+%% @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: wxGraphicsMatrix. +%%

This class is derived (and can use functions) from: +%%
{@link wxGraphicsObject} +%%

+%% @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 external documentation. +concat(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TT,ref=TRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + ?CLASS(TT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsMatrix_Concat, + <>). + +%% @spec (This::wxGraphicsMatrix()) -> {A::float(),B::float(),C::float(),D::float(),Tx::float(),Ty::float()} +%% @doc See external documentation. +get(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:call(?wxGraphicsMatrix_Get, + <>). + +%% @spec (This::wxGraphicsMatrix()) -> ok +%% @doc See external documentation. +getNativeMatrix(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsMatrix_GetNativeMatrix, + <>). + +%% @spec (This::wxGraphicsMatrix()) -> ok +%% @doc See external documentation. +invert(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsMatrix_Invert, + <>). + +%% @spec (This::wxGraphicsMatrix(), T::wxGraphicsMatrix()) -> bool() +%% @doc See external documentation. +isEqual(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TT,ref=TRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + ?CLASS(TT,wxGraphicsMatrix), + wxe_util:call(?wxGraphicsMatrix_IsEqual, + <>). + +%% @spec (This::wxGraphicsMatrix()) -> bool() +%% @doc See external documentation. +isIdentity(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:call(?wxGraphicsMatrix_IsIdentity, + <>). + +%% @spec (This::wxGraphicsMatrix(), Angle::float()) -> ok +%% @doc See external documentation. +rotate(#wx_ref{type=ThisT,ref=ThisRef},Angle) + when is_float(Angle) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsMatrix_Rotate, + <>). + +%% @spec (This::wxGraphicsMatrix(), XScale::float(), YScale::float()) -> ok +%% @doc See external documentation. +scale(#wx_ref{type=ThisT,ref=ThisRef},XScale,YScale) + when is_float(XScale),is_float(YScale) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsMatrix_Scale, + <>). + +%% @spec (This::wxGraphicsMatrix(), Dx::float(), Dy::float()) -> ok +%% @doc See external documentation. +translate(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy) + when is_float(Dx),is_float(Dy) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsMatrix_Translate, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGraphicsMatrix()) -> {X::float(),Y::float()} +%% @doc See external documentation. +transformPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:call(?wxGraphicsMatrix_TransformPoint, + <>). + +%% @spec (This::wxGraphicsMatrix()) -> {Dx::float(),Dy::float()} +%% @doc See external documentation. +transformDistance(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsMatrix), + wxe_util:call(?wxGraphicsMatrix_TransformDistance, + <>). + + %% 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: wxGraphicsObject. +%% @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 external documentation. +getRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsObject), + wxe_util:call(?wxGraphicsObject_GetRenderer, + <>). + +%% @spec (This::wxGraphicsObject()) -> bool() +%% @doc See external documentation. +isNull(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsObject), + wxe_util:call(?wxGraphicsObject_IsNull, + <>). + 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: wxGraphicsPath. +%%

This class is derived (and can use functions) from: +%%
{@link wxGraphicsObject} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), C::{X::float(),Y::float()}, R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X1::float(), Y1::float(), X2::float(), Y2::float(), R::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), R::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), C1::{X::float(),Y::float()}, C2::{X::float(),Y::float()}, E::{X::float(),Y::float()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), Cx1::float(), Cy1::float(), Cx2::float(), Cy2::float(), X::float(), Y::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), P::{X::float(),Y::float()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), Path::wxGraphicsPath()) -> ok +%% @doc See external documentation. +addPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}) -> + ?CLASS(ThisT,wxGraphicsPath), + ?CLASS(PathT,wxGraphicsPath), + wxe_util:cast(?wxGraphicsPath_AddPath, + <>). + +%% @spec (This::wxGraphicsPath(), Cx::float(), Cy::float(), X::float(), Y::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath()) -> ok +%% @doc See external documentation. +closeSubpath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsPath), + wxe_util:cast(?wxGraphicsPath_CloseSubpath, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% contains(This::wxGraphicsPath(), X::float(), Y::float()) -> contains(This,X,Y, [])

+%%

+%% contains(This::wxGraphicsPath(), C::{X::float(),Y::float()}, [Option]) -> bool() +%%
Option = {fillStyle, integer()} +%%

+ +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, + <>). + +%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), [Option]) -> bool() +%% Option = {fillStyle, integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsPath()) -> {X::float(),Y::float(),W::float(),H::float()} +%% @doc See external documentation. +getBox(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsPath), + wxe_util:call(?wxGraphicsPath_GetBox, + <>). + +%% @spec (This::wxGraphicsPath()) -> {X::float(),Y::float()} +%% @doc See external documentation. +getCurrentPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsPath), + wxe_util:call(?wxGraphicsPath_GetCurrentPoint, + <>). + +%% @spec (This::wxGraphicsPath(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok +%% @doc See external documentation. +transform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) -> + ?CLASS(ThisT,wxGraphicsPath), + ?CLASS(MatrixT,wxGraphicsMatrix), + wxe_util:cast(?wxGraphicsPath_Transform, + <>). + + %% 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: wxGraphicsPen. +%%

This class is derived (and can use functions) from: +%%
{@link wxGraphicsObject} +%%

+%% @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: wxGraphicsRenderer. +%% @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 external documentation. +getDefaultRenderer() -> + wxe_util:call(?wxGraphicsRenderer_GetDefaultRenderer, + <<>>). + +%% @spec (This::wxGraphicsRenderer(), Dc::wxWindowDC:wxWindowDC() | wxWindow:wxWindow()) -> wxGraphicsContext:wxGraphicsContext() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsRenderer(), Pen::wxPen:wxPen()) -> wxGraphicsPen:wxGraphicsPen() +%% @doc See external documentation. +createPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) -> + ?CLASS(ThisT,wxGraphicsRenderer), + ?CLASS(PenT,wxPen), + wxe_util:call(?wxGraphicsRenderer_CreatePen, + <>). + +%% @spec (This::wxGraphicsRenderer(), Brush::wxBrush:wxBrush()) -> wxGraphicsBrush:wxGraphicsBrush() +%% @doc See external documentation. +createBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) -> + ?CLASS(ThisT,wxGraphicsRenderer), + ?CLASS(BrushT,wxBrush), + wxe_util:call(?wxGraphicsRenderer_CreateBrush, + <>). + +%% @spec (This::wxGraphicsRenderer(), X1::float(), Y1::float(), X2::float(), Y2::float(), C1::wx:colour(), C2::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGraphicsRenderer(), Xo::float(), Yo::float(), Xc::float(), Yc::float(), Radius::float(), OColor::wx:colour(), CColor::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGraphicsRenderer()) -> wxGraphicsPath:wxGraphicsPath() +%% @doc See external documentation. +createPath(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGraphicsRenderer), + wxe_util:call(?wxGraphicsRenderer_CreatePath, + <>). + 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: wxGrid. +%%

This class is derived (and can use functions) from: +%%
{@link wxScrolledWindow} +%%
{@link wxPanel} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +%%
Alternatives: +%%

+%% new(Parent::wxWindow:wxWindow(), X::integer(), Y::integer()) -> new(Parent,X,Y, [])

+%%

+%% new(Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxGrid() +%%
Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} +%%

+ +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, + <>). + +%% @spec (Parent::wxWindow:wxWindow(), X::integer(), Y::integer(), [Option]) -> wxGrid() +%% Option = {w, integer()} | {h, integer()} | {style, integer()} +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +autoSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_AutoSize, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +beginBatch(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_BeginBatch, + <>). + +%% @spec (This::wxGrid(), TopLeft::{R::integer(),C::integer()}, BottomRight::{R::integer(),C::integer()}) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +canDragColSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_CanDragColSize, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +canDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_CanDragRowSize, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +canDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_CanDragGridSize, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +canEnableCellControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_CanEnableCellControl, + <>). + +%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +clearGrid(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_ClearGrid, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +clearSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_ClearSelection, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +disableCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_DisableCellEditControl, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +disableDragColSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_DisableDragColSize, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +disableDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_DisableDragGridSize, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +disableDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_DisableDragRowSize, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Edit::bool()) -> ok +%% @doc See external documentation. +enableEditing(#wx_ref{type=ThisT,ref=ThisRef},Edit) + when is_boolean(Edit) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_EnableEditing, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +endBatch(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_EndBatch, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +fit(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_Fit, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +forceRefresh(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_ForceRefresh, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getBatchCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetBatchCount, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> {Horiz::integer(),Vert::integer()} +%% @doc See external documentation. +getCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetCellAlignment, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wx:colour() +%% @doc See external documentation. +getCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetCellBackgroundColour, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +getCellEditor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetCellEditor, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxFont:wxFont() +%% @doc See external documentation. +getCellFont(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetCellFont, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() +%% @doc See external documentation. +getCellRenderer(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetCellRenderer, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wx:colour() +%% @doc See external documentation. +getCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetCellTextColour, + <>). + +%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> string() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> string() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> {Horiz::integer(),Vert::integer()} +%% @doc See external documentation. +getColLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetColLabelAlignment, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getColLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetColLabelSize, + <>). + +%% @spec (This::wxGrid(), Col::integer()) -> string() +%% @doc See external documentation. +getColLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetColLabelValue, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getColMinimalAcceptableWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetColMinimalAcceptableWidth, + <>). + +%% @spec (This::wxGrid()) -> {Horiz::integer(),Vert::integer()} +%% @doc See external documentation. +getDefaultCellAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultCellAlignment, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getDefaultCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultCellBackgroundColour, + <>). + +%% @spec (This::wxGrid()) -> wxFont:wxFont() +%% @doc See external documentation. +getDefaultCellFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultCellFont, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getDefaultCellTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultCellTextColour, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getDefaultColLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultColLabelSize, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getDefaultColSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultColSize, + <>). + +%% @spec (This::wxGrid()) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +getDefaultEditor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultEditor, + <>). + +%% @spec (This::wxGrid(), C::{R::integer(),C::integer()}) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), TypeName::string()) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> wxGridCellRenderer:wxGridCellRenderer() +%% @doc See external documentation. +getDefaultRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultRenderer, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() +%% @doc See external documentation. +getDefaultRendererForCell(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultRendererForCell, + <>). + +%% @spec (This::wxGrid(), TypeName::string()) -> wxGridCellRenderer:wxGridCellRenderer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getDefaultRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultRowLabelSize, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getDefaultRowSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetDefaultRowSize, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getGridCursorCol(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridCursorCol, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getGridCursorRow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridCursorRow, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getGridLineColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridLineColour, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +gridLinesEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GridLinesEnabled, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getLabelBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetLabelBackgroundColour, + <>). + +%% @spec (This::wxGrid()) -> wxFont:wxFont() +%% @doc See external documentation. +getLabelFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetLabelFont, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getLabelTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetLabelTextColour, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getNumberCols(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetNumberCols, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getNumberRows(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetNumberRows, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellAttr:wxGridCellAttr() +%% @doc See external documentation. +getOrCreateCellAttr(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetOrCreateCellAttr, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getRowMinimalAcceptableHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetRowMinimalAcceptableHeight, + <>). + +%% @spec (This::wxGrid()) -> {Horiz::integer(),Vert::integer()} +%% @doc See external documentation. +getRowLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetRowLabelAlignment, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetRowLabelSize, + <>). + +%% @spec (This::wxGrid(), Row::integer()) -> string() +%% @doc See external documentation. +getRowLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Row) + when is_integer(Row) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetRowLabelValue, + <>). + +%% @spec (This::wxGrid(), Row::integer()) -> integer() +%% @doc See external documentation. +getRowSize(#wx_ref{type=ThisT,ref=ThisRef},Row) + when is_integer(Row) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetRowSize, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getScrollLineX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetScrollLineX, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getScrollLineY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetScrollLineY, + <>). + +%% @spec (This::wxGrid()) -> [{R::integer(),C::integer()}] +%% @doc See external documentation. +getSelectedCells(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectedCells, + <>). + +%% @spec (This::wxGrid()) -> [integer()] +%% @doc See external documentation. +getSelectedCols(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectedCols, + <>). + +%% @spec (This::wxGrid()) -> [integer()] +%% @doc See external documentation. +getSelectedRows(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectedRows, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getSelectionBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectionBackground, + <>). + +%% @spec (This::wxGrid()) -> [{R::integer(),C::integer()}] +%% @doc See external documentation. +getSelectionBlockTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectionBlockTopLeft, + <>). + +%% @spec (This::wxGrid()) -> [{R::integer(),C::integer()}] +%% @doc See external documentation. +getSelectionBlockBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectionBlockBottomRight, + <>). + +%% @spec (This::wxGrid()) -> wx:colour() +%% @doc See external documentation. +getSelectionForeground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetSelectionForeground, + <>). + +%% @spec (This::wxGrid()) -> integer() +%% @doc See external documentation. +getViewWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetViewWidth, + <>). + +%% @spec (This::wxGrid()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getGridWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridWindow, + <>). + +%% @spec (This::wxGrid()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getGridRowLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridRowLabelWindow, + <>). + +%% @spec (This::wxGrid()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getGridColLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridColLabelWindow, + <>). + +%% @spec (This::wxGrid()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getGridCornerLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_GetGridCornerLabelWindow, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +hideCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_HideCellEditControl, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +isCellEditControlEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_IsCellEditControlEnabled, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +isCurrentCellReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_IsCurrentCellReadOnly, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +isEditable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_IsEditable, + <>). + +%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> bool() +%% @doc See external documentation. +isReadOnly(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_IsReadOnly, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +isSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_IsSelection, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% isVisible(This::wxGrid(), Row::integer(), Col::integer()) -> isVisible(This,Row,Col, [])

+%%

+%% isVisible(This::wxGrid(), Coords::{R::integer(),C::integer()}, [Option]) -> bool() +%%
Option = {wholeCellVisible, bool()} +%%

+ +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer(), [Option]) -> bool() +%% Option = {wholeCellVisible, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorDown(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorDown, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorLeft(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorLeft, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorRight(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorRight, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorUp(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorUp, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorDownBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorDownBlock, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorLeftBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorLeftBlock, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorRightBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorRightBlock, + <>). + +%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() +%% @doc See external documentation. +moveCursorUpBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) + when is_boolean(ExpandSelection) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MoveCursorUpBlock, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +movePageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MovePageDown, + <>). + +%% @spec (This::wxGrid()) -> bool() +%% @doc See external documentation. +movePageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_MovePageUp, + <>). + +%% @spec (This::wxGrid(), TypeName::string(), Renderer::wxGridCellRenderer:wxGridCellRenderer(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +saveEditControlValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SaveEditControlValue, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +selectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SelectAll, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Align::integer()) -> ok +%% @doc See external documentation. +setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Align) + when is_integer(Align) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetCellAlignment_1, + <>). + +%% @spec (This::wxGrid(), Align::integer(), Row::integer(), Col::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Horiz::integer(), Vert::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(),X::integer()|term(),X::integer(),X::term()|integer()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setCellBackgroundColour(This::wxGrid(), Row::integer(), Col::integer(), Val::wx:colour()) -> ok +%%

+%%

+%% setCellBackgroundColour(This::wxGrid(), Colour::wx:colour(), Row::integer(), Col::integer()) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Val::wxFont:wxFont()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(),X::integer()|term(),X::integer(),X::term()|integer()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setCellTextColour(This::wxGrid(), Row::integer(), Col::integer(), Val::wx:colour()) -> ok +%%

+%%

+%% setCellTextColour(This::wxGrid(), Val::wx:colour(), Row::integer(), Col::integer()) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxGrid(), Coords::{R::integer(),C::integer()}, S::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(),X::integer()|string(),X::integer(),X::string()|integer()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setCellValue(This::wxGrid(), Row::integer(), Col::integer(), S::string()) -> ok +%%

+%%

+%% setCellValue(This::wxGrid(), Val::string(), Row::integer(), Col::integer()) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxGrid(), Col::integer(), Attr::wxGridCellAttr:wxGridCellAttr()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Col::integer()) -> ok +%% @doc See external documentation. +setColFormatBool(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColFormatBool, + <>). + +%% @spec (This::wxGrid(), Col::integer()) -> ok +%% @doc See external documentation. +setColFormatNumber(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColFormatNumber, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Col::integer(), TypeName::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok +%% @doc See external documentation. +setColLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert) + when is_integer(Horiz),is_integer(Vert) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColLabelAlignment, + <>). + +%% @spec (This::wxGrid(), Height::integer()) -> ok +%% @doc See external documentation. +setColLabelSize(#wx_ref{type=ThisT,ref=ThisRef},Height) + when is_integer(Height) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColLabelSize, + <>). + +%% @spec (This::wxGrid(), Col::integer(), Val::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Col::integer(), Width::integer()) -> ok +%% @doc See external documentation. +setColMinimalWidth(#wx_ref{type=ThisT,ref=ThisRef},Col,Width) + when is_integer(Col),is_integer(Width) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColMinimalWidth, + <>). + +%% @spec (This::wxGrid(), Width::integer()) -> ok +%% @doc See external documentation. +setColMinimalAcceptableWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColMinimalAcceptableWidth, + <>). + +%% @spec (This::wxGrid(), Col::integer(), Width::integer()) -> ok +%% @doc See external documentation. +setColSize(#wx_ref{type=ThisT,ref=ThisRef},Col,Width) + when is_integer(Col),is_integer(Width) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetColSize, + <>). + +%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok +%% @doc See external documentation. +setDefaultCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert) + when is_integer(Horiz),is_integer(Vert) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetDefaultCellAlignment, + <>). + +%% @spec (This::wxGrid(), Val::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Val::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setDefaultCellFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ValT,ref=ValRef}) -> + ?CLASS(ThisT,wxGrid), + ?CLASS(ValT,wxFont), + wxe_util:cast(?wxGrid_SetDefaultCellFont, + <>). + +%% @spec (This::wxGrid(), Val::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok +%% @doc See external documentation. +setDefaultEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) -> + ?CLASS(ThisT,wxGrid), + ?CLASS(EditorT,wxGridCellEditor), + wxe_util:cast(?wxGrid_SetDefaultEditor, + <>). + +%% @spec (This::wxGrid(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok +%% @doc See external documentation. +setDefaultRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) -> + ?CLASS(ThisT,wxGrid), + ?CLASS(RendererT,wxGridCellRenderer), + wxe_util:cast(?wxGrid_SetDefaultRenderer, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok +%% @doc See external documentation. +setGridCursor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetGridCursor, + <>). + +%% @spec (This::wxGrid(), Val::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Val::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Val::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setLabelFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ValT,ref=ValRef}) -> + ?CLASS(ThisT,wxGrid), + ?CLASS(ValT,wxFont), + wxe_util:cast(?wxGrid_SetLabelFont, + <>). + +%% @spec (This::wxGrid(), Val::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), ExtraWidth::integer(), ExtraHeight::integer()) -> ok +%% @doc See external documentation. +setMargins(#wx_ref{type=ThisT,ref=ThisRef},ExtraWidth,ExtraHeight) + when is_integer(ExtraWidth),is_integer(ExtraHeight) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetMargins, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Attr::wxGridCellAttr:wxGridCellAttr()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok +%% @doc See external documentation. +setRowLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert) + when is_integer(Horiz),is_integer(Vert) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetRowLabelAlignment, + <>). + +%% @spec (This::wxGrid(), Width::integer()) -> ok +%% @doc See external documentation. +setRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetRowLabelSize, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Val::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Width::integer()) -> ok +%% @doc See external documentation. +setRowMinimalHeight(#wx_ref{type=ThisT,ref=ThisRef},Row,Width) + when is_integer(Row),is_integer(Width) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetRowMinimalHeight, + <>). + +%% @spec (This::wxGrid(), Width::integer()) -> ok +%% @doc See external documentation. +setRowMinimalAcceptableHeight(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetRowMinimalAcceptableHeight, + <>). + +%% @spec (This::wxGrid(), Row::integer(), Height::integer()) -> ok +%% @doc See external documentation. +setRowSize(#wx_ref{type=ThisT,ref=ThisRef},Row,Height) + when is_integer(Row),is_integer(Height) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetRowSize, + <>). + +%% @spec (This::wxGrid(), X::integer()) -> ok +%% @doc See external documentation. +setScrollLineX(#wx_ref{type=ThisT,ref=ThisRef},X) + when is_integer(X) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetScrollLineX, + <>). + +%% @spec (This::wxGrid(), Y::integer()) -> ok +%% @doc See external documentation. +setScrollLineY(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_SetScrollLineY, + <>). + +%% @spec (This::wxGrid(), C::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), C::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGrid(), Selmode::WxGridSelectionModes) -> ok +%% WxGridSelectionModes = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxGrid()) -> ok +%% @doc See external documentation. +showCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGrid), + wxe_util:cast(?wxGrid_ShowCellEditControl, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGrid(), X::integer()) -> integer() +%% @doc See external documentation. +xToEdgeOfCol(#wx_ref{type=ThisT,ref=ThisRef},X) + when is_integer(X) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_XToEdgeOfCol, + <>). + +%% @spec (This::wxGrid(), Y::integer()) -> integer() +%% @doc See external documentation. +yToEdgeOfRow(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_YToEdgeOfRow, + <>). + +%% @spec (This::wxGrid(), Y::integer()) -> integer() +%% @doc See external documentation. +yToRow(#wx_ref{type=ThisT,ref=ThisRef},Y) + when is_integer(Y) -> + ?CLASS(ThisT,wxGrid), + wxe_util:call(?wxGrid_YToRow, + <>). + +%% @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: wxGridBagSizer. +%%

This class is derived (and can use functions) from: +%%
{@link wxFlexGridSizer} +%%
{@link wxGridSizer} +%%
{@link wxSizer} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridBagSizer(), Item::wxSizerItem:wxSizerItem() | wxGBSizerItem:wxGBSizerItem()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridBagSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% add(This::wxGridBagSizer(), Width::integer(), Height::integer()) -> add(This,Width,Height, [])

+%%

+%% add(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Pos::{R::integer(),C::integer()}) -> add(This,Window,Pos, [])

+%%

+%% add(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() +%%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%%

+ +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, + <>). + +%% @spec (This::wxGridBagSizer(),X::integer()|term(),X::integer()|term(),X::term()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% add(This::wxGridBagSizer(), Width::integer(), Height::integer(), Pos::{R::integer(),C::integer()}) -> add(This,Width,Height,Pos, [])

+%%

+%% add(This::wxGridBagSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() +%%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%%

+%%

+%% add(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Pos::{R::integer(),C::integer()}, [Option]) -> wxSizerItem:wxSizerItem() +%%
Option = {span, {RS::integer(),CS::integer()}} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%%

+ +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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridBagSizer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +calcMin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_CalcMin, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% checkForIntersection(This::wxGridBagSizer(), Pos::{R::integer(),C::integer()}, Span::{RS::integer(),CS::integer()}) -> checkForIntersection(This,Pos,Span, [])

+%%

+%% checkForIntersection(This::wxGridBagSizer(), Item::wxGBSizerItem:wxGBSizerItem(), [Option]) -> bool() +%%
Option = {excludeItem, wxGBSizerItem:wxGBSizerItem()} +%%

+ +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, + <>). + +%% @spec (This::wxGridBagSizer(), Pos::{R::integer(),C::integer()}, Span::{RS::integer(),CS::integer()}, [Option]) -> bool() +%% Option = {excludeItem, wxGBSizerItem:wxGBSizerItem()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer()) -> wxGBSizerItem:wxGBSizerItem() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridBagSizer(), Pt::{X::integer(),Y::integer()}) -> wxGBSizerItem:wxGBSizerItem() +%% @doc See external documentation. +findItemAtPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_FindItemAtPoint, + <>). + +%% @spec (This::wxGridBagSizer(), Pos::{R::integer(),C::integer()}) -> wxGBSizerItem:wxGBSizerItem() +%% @doc See external documentation. +findItemAtPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosR,PosC}) + when is_integer(PosR),is_integer(PosC) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_FindItemAtPosition, + <>). + +%% @spec (This::wxGridBagSizer(), UserData::wx:wx()) -> wxGBSizerItem:wxGBSizerItem() +%% @doc See external documentation. +findItemWithData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=UserDataT,ref=UserDataRef}) -> + ?CLASS(ThisT,wxGridBagSizer), + ?CLASS(UserDataT,wx), + wxe_util:call(?wxGridBagSizer_FindItemWithData, + <>). + +%% @spec (This::wxGridBagSizer(), Row::integer(), Col::integer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getCellSize(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_GetCellSize, + <>). + +%% @spec (This::wxGridBagSizer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getEmptyCellSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_GetEmptyCellSize, + <>). + +%% @spec (This::wxGridBagSizer(),X::integer()|term()) -> {R::integer(),C::integer()} +%% @doc See external documentation. +%%
Alternatives: +%%

+%% getItemPosition(This::wxGridBagSizer(), Index::integer()) -> {R::integer(),C::integer()} +%%

+%%

+%% getItemPosition(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer()) -> {R::integer(),C::integer()} +%%

+getItemPosition(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_GetItemPosition_1_0, + <>); +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, + <>). + +%% @spec (This::wxGridBagSizer(),X::integer()|term()) -> {RS::integer(),CS::integer()} +%% @doc See external documentation. +%%
Alternatives: +%%

+%% getItemSpan(This::wxGridBagSizer(), Index::integer()) -> {RS::integer(),CS::integer()} +%%

+%%

+%% getItemSpan(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer()) -> {RS::integer(),CS::integer()} +%%

+getItemSpan(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:call(?wxGridBagSizer_GetItemSpan_1_0, + <>); +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, + <>). + +%% @spec (This::wxGridBagSizer(), Sz::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setEmptyCellSize(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) + when is_integer(SzW),is_integer(SzH) -> + ?CLASS(ThisT,wxGridBagSizer), + wxe_util:cast(?wxGridBagSizer_SetEmptyCellSize, + <>). + +%% @spec (This::wxGridBagSizer(),X::integer()|term(),Pos::{R::integer(),C::integer()}) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setItemPosition(This::wxGridBagSizer(), Index::integer(), Pos::{R::integer(),C::integer()}) -> bool() +%%

+%%

+%% setItemPosition(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Pos::{R::integer(),C::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxGridBagSizer(),X::integer()|term(),Span::{RS::integer(),CS::integer()}) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setItemSpan(This::wxGridBagSizer(), Index::integer(), Span::{RS::integer(),CS::integer()}) -> bool() +%%

+%%

+%% setItemSpan(This::wxGridBagSizer(), Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Span::{RS::integer(),CS::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @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: wxGridCellAttr. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellAttr(), ColBack::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellAttr(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxGridCellAttr_SetFont, + <>). + +%% @spec (This::wxGridCellAttr(), HAlign::integer(), VAlign::integer()) -> ok +%% @doc See external documentation. +setAlignment(#wx_ref{type=ThisT,ref=ThisRef},HAlign,VAlign) + when is_integer(HAlign),is_integer(VAlign) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:cast(?wxGridCellAttr_SetAlignment, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellAttr(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok +%% @doc See external documentation. +setRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(RendererT,wxGridCellRenderer), + wxe_util:cast(?wxGridCellAttr_SetRenderer, + <>). + +%% @spec (This::wxGridCellAttr(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok +%% @doc See external documentation. +setEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(EditorT,wxGridCellEditor), + wxe_util:cast(?wxGridCellAttr_SetEditor, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasTextColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasBackgroundColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasFont, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasAlignment, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasRenderer, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasEditor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasEditor, + <>). + +%% @spec (This::wxGridCellAttr()) -> wx:colour() +%% @doc See external documentation. +getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetTextColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> wx:colour() +%% @doc See external documentation. +getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetBackgroundColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetFont, + <>). + +%% @spec (This::wxGridCellAttr()) -> {HAlign::integer(),VAlign::integer()} +%% @doc See external documentation. +getAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetAlignment, + <>). + +%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +isReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_IsReadOnly, + <>). + +%% @spec (This::wxGridCellAttr(), DefAttr::wxGridCellAttr()) -> ok +%% @doc See external documentation. +setDefAttr(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DefAttrT,ref=DefAttrRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(DefAttrT,wxGridCellAttr), + wxe_util:cast(?wxGridCellAttr_SetDefAttr, + <>). + 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: wxGridCellBoolEditor. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellEditor} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxGridCellBoolEditor_new, + <<>>). + +%% @spec (Value::string()) -> bool() +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @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: wxGridCellBoolRenderer. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellRenderer} +%%

+%% @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 external documentation. +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: wxGridCellChoiceEditor. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellEditor} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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: wxGridCellEditor. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellEditor()) -> bool() +%% @doc See external documentation. +isCreated(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:call(?wxGridCellEditor_IsCreated, + <>). + +%% @spec (This::wxGridCellEditor(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellEditor(), RectCell::{X::integer(),Y::integer(),W::integer(),H::integer()}, Attr::wxGridCellAttr:wxGridCellAttr()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellEditor()) -> ok +%% @doc See external documentation. +reset(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:cast(?wxGridCellEditor_Reset, + <>). + +%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok +%% @doc See external documentation. +startingKey(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(EventT,wxKeyEvent), + wxe_util:cast(?wxGridCellEditor_StartingKey, + <>). + +%% @spec (This::wxGridCellEditor()) -> ok +%% @doc See external documentation. +startingClick(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:cast(?wxGridCellEditor_StartingClick, + <>). + +%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok +%% @doc See external documentation. +handleReturn(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(EventT,wxKeyEvent), + wxe_util:cast(?wxGridCellEditor_HandleReturn, + <>). + 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: wxGridCellFloatEditor. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellEditor} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellFloatEditor(), Params::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxGridCellFloatRenderer. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellStringRenderer} +%%
{@link wxGridCellRenderer} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellFloatRenderer()) -> integer() +%% @doc See external documentation. +getPrecision(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellFloatRenderer), + wxe_util:call(?wxGridCellFloatRenderer_GetPrecision, + <>). + +%% @spec (This::wxGridCellFloatRenderer()) -> integer() +%% @doc See external documentation. +getWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellFloatRenderer), + wxe_util:call(?wxGridCellFloatRenderer_GetWidth, + <>). + +%% @spec (This::wxGridCellFloatRenderer(), Params::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxGridCellFloatRenderer(), Precision::integer()) -> ok +%% @doc See external documentation. +setPrecision(#wx_ref{type=ThisT,ref=ThisRef},Precision) + when is_integer(Precision) -> + ?CLASS(ThisT,wxGridCellFloatRenderer), + wxe_util:cast(?wxGridCellFloatRenderer_SetPrecision, + <>). + +%% @spec (This::wxGridCellFloatRenderer(), Width::integer()) -> ok +%% @doc See external documentation. +setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxGridCellFloatRenderer), + wxe_util:cast(?wxGridCellFloatRenderer_SetWidth, + <>). + +%% @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: wxGridCellNumberEditor. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellTextEditor} +%%
{@link wxGridCellEditor} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellNumberEditor()) -> string() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellNumberEditor), + wxe_util:call(?wxGridCellNumberEditor_GetValue, + <>). + +%% @spec (This::wxGridCellNumberEditor(), Params::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxGridCellNumberRenderer. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellStringRenderer} +%%
{@link wxGridCellRenderer} +%%

+%% @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 external documentation. +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: wxGridCellRenderer. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxGridCellRenderer(), Grid::wxGrid:wxGrid(), Attr::wxGridCellAttr:wxGridCellAttr(), Dc::wxDC:wxDC(), Row::integer(), Col::integer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +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, + <>). + 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: wxGridCellStringRenderer. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellRenderer} +%%

+%% @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 external documentation. +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: wxGridCellTextEditor. +%%

This class is derived (and can use functions) from: +%%
{@link wxGridCellEditor} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxGridCellTextEditor_new, + <<>>). + +%% @spec (This::wxGridCellTextEditor(), Params::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxGridEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
grid_cell_left_click, grid_cell_right_click, grid_cell_left_dclick, grid_cell_right_dclick, grid_label_left_click, grid_label_right_click, grid_label_left_dclick, grid_label_right_dclick, grid_row_size, grid_col_size, grid_range_select, grid_cell_change, grid_select_cell, grid_editor_shown, grid_editor_hidden, grid_editor_created, grid_cell_begin_drag
+%% See also the message variant {@link wxEvtHandler:wxGrid(). #wxGrid{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +altDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_AltDown, + <>). + +%% @spec (This::wxGridEvent()) -> bool() +%% @doc See external documentation. +controlDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_ControlDown, + <>). + +%% @spec (This::wxGridEvent()) -> integer() +%% @doc See external documentation. +getCol(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_GetCol, + <>). + +%% @spec (This::wxGridEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_GetPosition, + <>). + +%% @spec (This::wxGridEvent()) -> integer() +%% @doc See external documentation. +getRow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_GetRow, + <>). + +%% @spec (This::wxGridEvent()) -> bool() +%% @doc See external documentation. +metaDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_MetaDown, + <>). + +%% @spec (This::wxGridEvent()) -> bool() +%% @doc See external documentation. +selecting(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_Selecting, + <>). + +%% @spec (This::wxGridEvent()) -> bool() +%% @doc See external documentation. +shiftDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridEvent), + wxe_util:call(?wxGridEvent_ShiftDown, + <>). + + %% 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: wxGridSizer. +%%

This class is derived (and can use functions) from: +%%
{@link wxSizer} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (Rows::integer(), Cols::integer(), Vgap::integer(), Hgap::integer()) -> wxGridSizer() +%% @doc See external documentation. +new(Rows,Cols,Vgap,Hgap) + when is_integer(Rows),is_integer(Cols),is_integer(Vgap),is_integer(Hgap) -> + wxe_util:construct(?wxGridSizer_new_4, + <>). + +%% @spec (This::wxGridSizer()) -> integer() +%% @doc See external documentation. +getCols(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:call(?wxGridSizer_GetCols, + <>). + +%% @spec (This::wxGridSizer()) -> integer() +%% @doc See external documentation. +getHGap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:call(?wxGridSizer_GetHGap, + <>). + +%% @spec (This::wxGridSizer()) -> integer() +%% @doc See external documentation. +getRows(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:call(?wxGridSizer_GetRows, + <>). + +%% @spec (This::wxGridSizer()) -> integer() +%% @doc See external documentation. +getVGap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:call(?wxGridSizer_GetVGap, + <>). + +%% @spec (This::wxGridSizer(), Cols::integer()) -> ok +%% @doc See external documentation. +setCols(#wx_ref{type=ThisT,ref=ThisRef},Cols) + when is_integer(Cols) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:cast(?wxGridSizer_SetCols, + <>). + +%% @spec (This::wxGridSizer(), Gap::integer()) -> ok +%% @doc See external documentation. +setHGap(#wx_ref{type=ThisT,ref=ThisRef},Gap) + when is_integer(Gap) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:cast(?wxGridSizer_SetHGap, + <>). + +%% @spec (This::wxGridSizer(), Rows::integer()) -> ok +%% @doc See external documentation. +setRows(#wx_ref{type=ThisT,ref=ThisRef},Rows) + when is_integer(Rows) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:cast(?wxGridSizer_SetRows, + <>). + +%% @spec (This::wxGridSizer(), Gap::integer()) -> ok +%% @doc See external documentation. +setVGap(#wx_ref{type=ThisT,ref=ThisRef},Gap) + when is_integer(Gap) -> + ?CLASS(ThisT,wxGridSizer), + wxe_util:cast(?wxGridSizer_SetVGap, + <>). + +%% @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: wxHelpEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
help, detailed_help
+%% See also the message variant {@link wxEvtHandler:wxHelp(). #wxHelp{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxHelpEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHelpEvent), + wxe_util:call(?wxHelpEvent_GetPosition, + <>). + +%% @spec (This::wxHelpEvent(), Origin::Origin) -> ok +%% Origin = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxHelpEvent(), Pos::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +setPosition(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY}) + when is_integer(PosX),is_integer(PosY) -> + ?CLASS(ThisT,wxHelpEvent), + wxe_util:cast(?wxHelpEvent_SetPosition, + <>). + + %% 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: wxHtmlEasyPrinting. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxHtmlEasyPrinting()) -> wxPrintData:wxPrintData() +%% @doc See external documentation. +getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlEasyPrinting), + wxe_util:call(?wxHtmlEasyPrinting_GetPrintData, + <>). + +%% @spec (This::wxHtmlEasyPrinting()) -> wxPageSetupDialogData:wxPageSetupDialogData() +%% @doc See external documentation. +getPageSetupData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlEasyPrinting), + wxe_util:call(?wxHtmlEasyPrinting_GetPageSetupData, + <>). + +%% @spec (This::wxHtmlEasyPrinting(), Htmlfile::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxHtmlEasyPrinting(), Htmlfile::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxHtmlEasyPrinting()) -> ok +%% @doc See external documentation. +pageSetup(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlEasyPrinting), + wxe_util:cast(?wxHtmlEasyPrinting_PageSetup, + <>). + +%% @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 external documentation. +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 <- 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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxHtmlLinkEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_html_link_clicked
+%% See also the message variant {@link wxEvtHandler:wxHtmlLink(). #wxHtmlLink{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getLinkInfo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlLinkEvent), + wxe_util:call(?wxHtmlLinkEvent_GetLinkInfo, + <>). + + %% 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: wxHtmlWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxScrolledWindow} +%%
{@link wxPanel} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow(), Source::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow()) -> string() +%% @doc See external documentation. +getOpenedAnchor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_GetOpenedAnchor, + <>). + +%% @spec (This::wxHtmlWindow()) -> string() +%% @doc See external documentation. +getOpenedPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_GetOpenedPage, + <>). + +%% @spec (This::wxHtmlWindow()) -> string() +%% @doc See external documentation. +getOpenedPageTitle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_GetOpenedPageTitle, + <>). + +%% @spec (This::wxHtmlWindow()) -> wxFrame:wxFrame() +%% @doc See external documentation. +getRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_GetRelatedFrame, + <>). + +%% @spec (This::wxHtmlWindow()) -> bool() +%% @doc See external documentation. +historyBack(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_HistoryBack, + <>). + +%% @spec (This::wxHtmlWindow()) -> bool() +%% @doc See external documentation. +historyCanBack(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_HistoryCanBack, + <>). + +%% @spec (This::wxHtmlWindow()) -> bool() +%% @doc See external documentation. +historyCanForward(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_HistoryCanForward, + <>). + +%% @spec (This::wxHtmlWindow()) -> ok +%% @doc See external documentation. +historyClear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:cast(?wxHtmlWindow_HistoryClear, + <>). + +%% @spec (This::wxHtmlWindow()) -> bool() +%% @doc See external documentation. +historyForward(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_HistoryForward, + <>). + +%% @spec (This::wxHtmlWindow(), Filename::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow(), Location::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow()) -> ok +%% @doc See external documentation. +selectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:cast(?wxHtmlWindow_SelectAll, + <>). + +%% @spec (This::wxHtmlWindow()) -> string() +%% @doc See external documentation. +selectionToText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_SelectionToText, + <>). + +%% @spec (This::wxHtmlWindow(), Pos::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +selectLine(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY}) + when is_integer(PosX),is_integer(PosY) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:cast(?wxHtmlWindow_SelectLine, + <>). + +%% @spec (This::wxHtmlWindow(), Pos::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +selectWord(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY}) + when is_integer(PosX),is_integer(PosY) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:cast(?wxHtmlWindow_SelectWord, + <>). + +%% @spec (This::wxHtmlWindow(), B::integer()) -> ok +%% @doc See external documentation. +setBorders(#wx_ref{type=ThisT,ref=ThisRef},B) + when is_integer(B) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:cast(?wxHtmlWindow_SetBorders, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow(), Source::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow(), Frame::wxFrame:wxFrame(), Format::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxHtmlWindow(), Bar::integer()) -> ok +%% @doc See external documentation. +setRelatedStatusBar(#wx_ref{type=ThisT,ref=ThisRef},Bar) + when is_integer(Bar) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:cast(?wxHtmlWindow_SetRelatedStatusBar, + <>). + +%% @spec (This::wxHtmlWindow()) -> string() +%% @doc See external documentation. +toText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxHtmlWindow), + wxe_util:call(?wxHtmlWindow_ToText, + <>). + +%% @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: wxIcon. +%%

This class is derived (and can use functions) from: +%%
{@link wxBitmap} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxIcon_new_0, + <<>>). + +%% @spec (X::string()|term()) -> wxIcon() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Filename::string()) -> new(Filename, [])

+%%

+%% new(Loc::wx:wx()) -> wxIcon() +%%

+ +new(Filename) + when is_list(Filename) -> + new(Filename, []); +new(#wx_ref{type=LocT,ref=LocRef}) -> + ?CLASS(LocT,wx), + wxe_util:construct(?wxIcon_new_1, + <>). + +%% @spec (Filename::string(), [Option]) -> wxIcon() +%% Option = {type, WxBitmapType} | {desiredWidth, integer()} | {desiredHeight, integer()} +%% WxBitmapType = integer() +%% @doc See external documentation. +%%
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 external documentation. +copyFromBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) -> + ?CLASS(ThisT,wxIcon), + ?CLASS(BmpT,wxBitmap), + wxe_util:cast(?wxIcon_CopyFromBitmap, + <>). + +%% @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: wxIconBundle. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxIconBundle_new_0, + <<>>). + +%% @spec (Ic::wxIconBundle() | wxIcon:wxIcon()) -> wxIconBundle() +%% @doc See external documentation. +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, + <>). + +%% @spec (File::string(), Type::integer()) -> wxIconBundle() +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxIconBundle(), File::string(), Type::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% getIcon(This::wxIconBundle(), [Option]) -> wxIcon:wxIcon() +%%
Option = {size, integer()} +%%

+%%

+%% getIcon(This::wxIconBundle(), Size::{W::integer(),H::integer()}) -> wxIcon:wxIcon() +%%

+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, + <>); +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, + <>). + +%% @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: wxIconizeEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
iconize
+%% See also the message variant {@link wxEvtHandler:wxIconize(). #wxIconize{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +iconized(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxIconizeEvent), + wxe_util:call(?wxIconizeEvent_Iconized, + <>). + + %% 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: wxIdleEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
idle
+%% See also the message variant {@link wxEvtHandler:wxIdle(). #wxIdle{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +canSend(#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(WinT,wxWindow), + wxe_util:call(?wxIdleEvent_CanSend, + <>). + +%% @spec () -> WxIdleMode +%% WxIdleMode = integer() +%% @doc See external documentation. +%%
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 external documentation. +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, + <>). + +%% @spec (This::wxIdleEvent()) -> bool() +%% @doc See external documentation. +moreRequested(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxIdleEvent), + wxe_util:call(?wxIdleEvent_MoreRequested, + <>). + +%% @spec (Mode::WxIdleMode) -> ok +%% WxIdleMode = integer() +%% @doc See external documentation. +%%
WxIdleMode is one of ?wxIDLE_PROCESS_ALL | ?wxIDLE_PROCESS_SPECIFIED +setMode(Mode) + when is_integer(Mode) -> + wxe_util:cast(?wxIdleEvent_SetMode, + <>). + + %% 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: wxImage. +%% +%% 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 external documentation. +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 external documentation. +%%
Alternatives: +%%

+%% new(Width::integer(), Height::integer()) -> new(Width,Height, [])

+%%

+%% new(Name::string(), [Option]) -> wxImage() +%%
Option = {type, integer()} | {index, integer()} +%%

+ +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 external documentation. +%%
Alternatives: +%%

+%% new(Width::integer(), Height::integer(), Data::binary()) -> new(Width,Height,Data, [])

+%%

+%% new(Width::integer(), Height::integer(), [Option]) -> wxImage() +%%
Option = {clear, bool()} +%%

+%%

+%% new(Name::string(), Mimetype::string(), [Option]) -> wxImage() +%%
Option = {index, integer()} +%%

+ +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, + <>); +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 external documentation. +%%
Alternatives: +%%

+%% new(Width::integer(), Height::integer(), Data::binary(), Alpha::binary()) -> new(Width,Height,Data,Alpha, [])

+%%

+%% new(Width::integer(), Height::integer(), Data::binary(), [Option]) -> wxImage() +%%
Option = {static_data, bool()} +%%

+ +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, + <>). + +%% @spec (Width::integer(), Height::integer(), Data::binary(), Alpha::binary(), [Option]) -> wxImage() +%% Option = {static_data, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(), Radius::integer()) -> wxImage() +%% @doc See external documentation. +blur(#wx_ref{type=ThisT,ref=ThisRef},Radius) + when is_integer(Radius) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_Blur, + <>). + +%% @spec (This::wxImage(), Radius::integer()) -> wxImage() +%% @doc See external documentation. +blurHorizontal(#wx_ref{type=ThisT,ref=ThisRef},Radius) + when is_integer(Radius) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_BlurHorizontal, + <>). + +%% @spec (This::wxImage(), Radius::integer()) -> wxImage() +%% @doc See external documentation. +blurVertical(#wx_ref{type=ThisT,ref=ThisRef},Radius) + when is_integer(Radius) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_BlurVertical, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), R::integer(), G::integer(), B::integer()) -> wxImage() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage()) -> wxImage() +%% @doc See external documentation. +copy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_Copy, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% create(This::wxImage(), Width::integer(), Height::integer(), Data::binary()) -> create(This,Width,Height,Data, [])

+%%

+%% create(This::wxImage(), Width::integer(), Height::integer(), [Option]) -> bool() +%%
Option = {clear, bool()} +%%

+ +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, + <>). + +%% @spec (This::wxImage(),Width::integer(),Height::integer(),Data::binary(),X::binary()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), Alpha::binary()) -> create(This,Width,Height,Data,Alpha, [])

+%%

+%% create(This::wxImage(), Width::integer(), Height::integer(), Data::binary(), [Option]) -> bool() +%%
Option = {static_data, bool()} +%%

+ +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, + <>). + +%% @spec (This::wxImage(), Width::integer(), Height::integer(), Data::binary(), Alpha::binary(), [Option]) -> bool() +%% Option = {static_data, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage()) -> ok +%% @doc See external documentation. +'Destroy'(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:cast(?wxImage_Destroy, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec () -> string() +%% @doc See external documentation. +getImageExtWildcard() -> + wxe_util:call(?wxImage_GetImageExtWildcard, + <<>>). + +%% @spec (This::wxImage()) -> binary() +%% @doc See external documentation. +getAlpha(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetAlpha_0, + <>). + +%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer() +%% @doc See external documentation. +getBlue(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetBlue, + <>). + +%% @spec (This::wxImage()) -> binary() +%% @doc See external documentation. +getData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetData, + <>). + +%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer() +%% @doc See external documentation. +getGreen(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetGreen, + <>). + +%% @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 external documentation. +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 external documentation. +getHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetHeight, + <>). + +%% @spec (This::wxImage()) -> integer() +%% @doc See external documentation. +getMaskBlue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetMaskBlue, + <>). + +%% @spec (This::wxImage()) -> integer() +%% @doc See external documentation. +getMaskGreen(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetMaskGreen, + <>). + +%% @spec (This::wxImage()) -> integer() +%% @doc See external documentation. +getMaskRed(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetMaskRed, + <>). + +%% @spec (This::wxImage()) -> {bool(),R::integer(),G::integer(),B::integer()} +%% @doc See external documentation. +getOrFindMaskColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetOrFindMaskColour, + <>). + +%% @spec (This::wxImage()) -> wxPalette:wxPalette() +%% @doc See external documentation. +getPalette(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetPalette, + <>). + +%% @spec (This::wxImage(), X::integer(), Y::integer()) -> integer() +%% @doc See external documentation. +getRed(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetRed, + <>). + +%% @spec (This::wxImage(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> wxImage() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage()) -> integer() +%% @doc See external documentation. +getWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_GetWidth, + <>). + +%% @spec (This::wxImage()) -> bool() +%% @doc See external documentation. +hasAlpha(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_HasAlpha, + <>). + +%% @spec (This::wxImage()) -> bool() +%% @doc See external documentation. +hasMask(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_HasMask, + <>). + +%% @spec (This::wxImage(), Name::string()) -> string() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(), Name::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(), Name::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage()) -> ok +%% @doc See external documentation. +initAlpha(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:cast(?wxImage_InitAlpha, + <>). + +%% @spec () -> ok +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), Name::string(), Mimetype::string(), [Option]) -> bool() +%% Option = {index, integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage()) -> bool() +%% @doc See external documentation. +ok(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImage), + wxe_util:call(?wxImage_Ok, + <>). + +%% @spec (Name::string()) -> bool() +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), R1::integer(), G1::integer(), B1::integer(), R2::integer(), G2::integer(), B2::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), Angle::float()) -> ok +%% @doc See external documentation. +rotateHue(#wx_ref{type=ThisT,ref=ThisRef},Angle) + when is_float(Angle) -> + ?CLASS(ThisT,wxImage), + wxe_util:cast(?wxImage_RotateHue, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), Name::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(),Name::string(),X::integer()|string()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% saveFile(This::wxImage(), Name::string(), Type::integer()) -> bool() +%%

+%%

+%% saveFile(This::wxImage(), Name::string(), Mimetype::string()) -> bool() +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), X::integer(), Y::integer(), Alpha::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImage(), R::integer(), G::integer(), B::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(), Mask::wxImage(), Mr::integer(), Mg::integer(), Mb::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(),Name::string(),X::integer()|string()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setOption(This::wxImage(), Name::string(), Value::integer()) -> ok +%%

+%%

+%% setOption(This::wxImage(), Name::string(), Value::string()) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxImage(), Palette::wxPalette:wxPalette()) -> ok +%% @doc See external documentation. +setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) -> + ?CLASS(ThisT,wxImage), + ?CLASS(PaletteT,wxPalette), + wxe_util:cast(?wxImage_SetPalette, + <>). + +%% @spec (This::wxImage(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, R::integer(), G::integer(), B::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImage(), X::integer(), Y::integer(), R::integer(), G::integer(), B::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxImageList. +%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxImageList(), Bitmap::wxBitmap:wxBitmap()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImageList(),Bitmap::wxBitmap:wxBitmap(),X::term()) -> integer() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% add(This::wxImageList(), Bitmap::wxBitmap:wxBitmap(), Mask::wxBitmap:wxBitmap()) -> integer() +%%

+%%

+%% add(This::wxImageList(), Bitmap::wxBitmap:wxBitmap(), MaskColour::wx:colour()) -> integer() +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxImageList(), Index::integer()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmap(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxImageList), + wxe_util:call(?wxImageList_GetBitmap, + <>). + +%% @spec (This::wxImageList(), Index::integer()) -> wxIcon:wxIcon() +%% @doc See external documentation. +getIcon(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxImageList), + wxe_util:call(?wxImageList_GetIcon, + <>). + +%% @spec (This::wxImageList()) -> integer() +%% @doc See external documentation. +getImageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImageList), + wxe_util:call(?wxImageList_GetImageCount, + <>). + +%% @spec (This::wxImageList(), Index::integer()) -> {bool(),Width::integer(),Height::integer()} +%% @doc See external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxImageList), + wxe_util:call(?wxImageList_GetSize, + <>). + +%% @spec (This::wxImageList(), Index::integer()) -> bool() +%% @doc See external documentation. +remove(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxImageList), + wxe_util:call(?wxImageList_Remove, + <>). + +%% @spec (This::wxImageList()) -> bool() +%% @doc See external documentation. +removeAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxImageList), + wxe_util:call(?wxImageList_RemoveAll, + <>). + +%% @spec (This::wxImageList(), Index::integer(), Bitmap::wxBitmap:wxBitmap()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxImageList(), Index::integer(), Bitmap::wxBitmap:wxBitmap(), Mask::wxBitmap:wxBitmap()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @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: wxJoystickEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
joy_button_down, joy_button_up, joy_move, joy_zmove
+%% See also the message variant {@link wxEvtHandler:wxJoystick(). #wxJoystick{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxJoystickEvent()) -> integer() +%% @doc See external documentation. +getButtonChange(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_GetButtonChange, + <>). + +%% @spec (This::wxJoystickEvent()) -> integer() +%% @doc See external documentation. +getButtonState(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_GetButtonState, + <>). + +%% @spec (This::wxJoystickEvent()) -> integer() +%% @doc See external documentation. +getJoystick(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_GetJoystick, + <>). + +%% @spec (This::wxJoystickEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_GetPosition, + <>). + +%% @spec (This::wxJoystickEvent()) -> integer() +%% @doc See external documentation. +getZPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_GetZPosition, + <>). + +%% @spec (This::wxJoystickEvent()) -> bool() +%% @doc See external documentation. +isButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_IsButton, + <>). + +%% @spec (This::wxJoystickEvent()) -> bool() +%% @doc See external documentation. +isMove(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_IsMove, + <>). + +%% @spec (This::wxJoystickEvent()) -> bool() +%% @doc See external documentation. +isZMove(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxJoystickEvent), + wxe_util:call(?wxJoystickEvent_IsZMove, + <>). + + %% 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: wxKeyEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
char, char_hook, key_down, key_up
+%% See also the message variant {@link wxEvtHandler:wxKey(). #wxKey{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +altDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_AltDown, + <>). + +%% @spec (This::wxKeyEvent()) -> bool() +%% @doc See external documentation. +cmdDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_CmdDown, + <>). + +%% @spec (This::wxKeyEvent()) -> bool() +%% @doc See external documentation. +controlDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_ControlDown, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetKeyCode, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getModifiers(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetModifiers, + <>). + +%% @spec (This::wxKeyEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetPosition, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getRawKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetRawKeyCode, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getRawKeyFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetRawKeyFlags, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getUnicodeKey(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetUnicodeKey, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetX, + <>). + +%% @spec (This::wxKeyEvent()) -> integer() +%% @doc See external documentation. +getY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_GetY, + <>). + +%% @spec (This::wxKeyEvent()) -> bool() +%% @doc See external documentation. +hasModifiers(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_HasModifiers, + <>). + +%% @spec (This::wxKeyEvent()) -> bool() +%% @doc See external documentation. +metaDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_MetaDown, + <>). + +%% @spec (This::wxKeyEvent()) -> bool() +%% @doc See external documentation. +shiftDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxKeyEvent), + wxe_util:call(?wxKeyEvent_ShiftDown, + <>). + + %% 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: wxLayoutAlgorithm. +%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxListBox. +%%

This class is derived (and can use functions) from: +%%
{@link wxControlWithItems} +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>|| 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 external documentation. +deselect(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListBox), + wxe_util:cast(?wxListBox_Deselect, + <>). + +%% @spec (This::wxListBox()) -> {integer(),ASelections::[integer()]} +%% @doc See external documentation. +getSelections(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListBox), + wxe_util:call(?wxListBox_GetSelections, + <>). + +%% @spec (This::wxListBox(), Items::[[string()]], Pos::integer()) -> ok +%% @doc See external documentation. +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, + <>|| 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 external documentation. +isSelected(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListBox), + wxe_util:call(?wxListBox_IsSelected, + <>). + +%% @spec (This::wxListBox(), Items::[[string()]]) -> ok +%% @doc See external documentation. +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, + <>|| 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 external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PointX,PointY}) + when is_integer(PointX),is_integer(PointY) -> + ?CLASS(ThisT,wxListBox), + wxe_util:call(?wxListBox_HitTest, + <>). + +%% @spec (This::wxListBox(),X::integer()|string()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setFirstItem(This::wxListBox(), N::integer()) -> ok +%%

+%%

+%% setFirstItem(This::wxListBox(), S::string()) -> ok +%%

+setFirstItem(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListBox), + wxe_util:cast(?wxListBox_SetFirstItem_1_0, + <>); +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, + <>). + +%% @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: wxListCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), ImageList::wxImageList:wxImageList(), Which::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl()) -> ok +%% @doc See external documentation. +clearAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:cast(?wxListCtrl_ClearAll, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl()) -> bool() +%% @doc See external documentation. +deleteAllItems(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_DeleteAllItems, + <>). + +%% @spec (This::wxListCtrl(), Col::integer()) -> bool() +%% @doc See external documentation. +deleteColumn(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_DeleteColumn, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> bool() +%% @doc See external documentation. +deleteItem(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_DeleteItem, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> wxTextCtrl:wxTextCtrl() +%% @doc See external documentation. +editLabel(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_EditLabel, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> bool() +%% @doc See external documentation. +ensureVisible(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_EnsureVisible, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% findItem(This::wxListCtrl(), Start::integer(), Str::string(), [Option]) -> integer() +%%
Option = {partial, bool()} +%%

+%%

+%% findItem(This::wxListCtrl(), Start::integer(), Pt::{X::integer(),Y::integer()}, Direction::integer()) -> integer() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxListCtrl(), Col::integer(), Item::wxListItem:wxListItem()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl()) -> integer() +%% @doc See external documentation. +getColumnCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetColumnCount, + <>). + +%% @spec (This::wxListCtrl(), Col::integer()) -> integer() +%% @doc See external documentation. +getColumnWidth(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetColumnWidth, + <>). + +%% @spec (This::wxListCtrl()) -> integer() +%% @doc See external documentation. +getCountPerPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetCountPerPage, + <>). + +%% @spec (This::wxListCtrl(), Which::integer()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef},Which) + when is_integer(Which) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetImageList, + <>). + +%% @spec (This::wxListCtrl(), Info::wxListItem:wxListItem()) -> bool() +%% @doc See external documentation. +getItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=InfoT,ref=InfoRef}) -> + ?CLASS(ThisT,wxListCtrl), + ?CLASS(InfoT,wxListItem), + wxe_util:call(?wxListCtrl_GetItem, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> wx:colour() +%% @doc See external documentation. +getItemBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemBackgroundColour, + <>). + +%% @spec (This::wxListCtrl()) -> integer() +%% @doc See external documentation. +getItemCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemCount, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> integer() +%% @doc See external documentation. +getItemData(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemData, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> wxFont:wxFont() +%% @doc See external documentation. +getItemFont(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemFont, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Pos::{X::integer(),Y::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getItemSpacing(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemSpacing, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), StateMask::integer()) -> integer() +%% @doc See external documentation. +getItemState(#wx_ref{type=ThisT,ref=ThisRef},Item,StateMask) + when is_integer(Item),is_integer(StateMask) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemState, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> string() +%% @doc See external documentation. +getItemText(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemText, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> wx:colour() +%% @doc See external documentation. +getItemTextColour(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetItemTextColour, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl()) -> integer() +%% @doc See external documentation. +getSelectedItemCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetSelectedItemCount, + <>). + +%% @spec (This::wxListCtrl()) -> wx:colour() +%% @doc See external documentation. +getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetTextColour, + <>). + +%% @spec (This::wxListCtrl()) -> integer() +%% @doc See external documentation. +getTopItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetTopItem, + <>). + +%% @spec (This::wxListCtrl()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getViewRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_GetViewRect, + <>). + +%% @spec (This::wxListCtrl(), Point::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()} +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PointX,PointY}) + when is_integer(PointX),is_integer(PointY) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_HitTest, + <>). + +%% @spec (This::wxListCtrl(),Col::integer(),X::string()|term()) -> integer() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% insertColumn(This::wxListCtrl(), Col::integer(), Heading::string()) -> insertColumn(This,Col,Heading, [])

+%%

+%% insertColumn(This::wxListCtrl(), Col::integer(), Info::wxListItem:wxListItem()) -> integer() +%%

+ +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, + <>). + +%% @spec (This::wxListCtrl(), Col::integer(), Heading::string(), [Option]) -> integer() +%% Option = {format, integer()} | {width, integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Info::wxListItem:wxListItem()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(),Index::integer(),X::integer()|string()) -> integer() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% insertItem(This::wxListCtrl(), Index::integer(), ImageIndex::integer()) -> integer() +%%

+%%

+%% insertItem(This::wxListCtrl(), Index::integer(), Label::string()) -> integer() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxListCtrl(), Index::integer(), Label::string(), ImageIndex::integer()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer()) -> ok +%% @doc See external documentation. +refreshItem(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:cast(?wxListCtrl_RefreshItem, + <>). + +%% @spec (This::wxListCtrl(), ItemFrom::integer(), ItemTo::integer()) -> ok +%% @doc See external documentation. +refreshItems(#wx_ref{type=ThisT,ref=ThisRef},ItemFrom,ItemTo) + when is_integer(ItemFrom),is_integer(ItemTo) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:cast(?wxListCtrl_RefreshItems, + <>). + +%% @spec (This::wxListCtrl(), Dx::integer(), Dy::integer()) -> bool() +%% @doc See external documentation. +scrollList(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy) + when is_integer(Dx),is_integer(Dy) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_ScrollList, + <>). + +%% @spec (This::wxListCtrl(), Colour::wx:colour()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Col::integer(), Item::wxListItem:wxListItem()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Col::integer(), Width::integer()) -> bool() +%% @doc See external documentation. +setColumnWidth(#wx_ref{type=ThisT,ref=ThisRef},Col,Width) + when is_integer(Col),is_integer(Width) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_SetColumnWidth, + <>). + +%% @spec (This::wxListCtrl(), ImageList::wxImageList:wxImageList(), Which::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Info::wxListItem:wxListItem()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Count::integer()) -> ok +%% @doc See external documentation. +setItemCount(#wx_ref{type=ThisT,ref=ThisRef},Count) + when is_integer(Count) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:cast(?wxListCtrl_SetItemCount, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Data::integer()) -> bool() +%% @doc See external documentation. +setItemData(#wx_ref{type=ThisT,ref=ThisRef},Item,Data) + when is_integer(Item),is_integer(Data) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:call(?wxListCtrl_SetItemData, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), F::wxFont:wxFont()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Column::integer(), Image::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Pos::{X::integer(),Y::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), State::integer(), StateMask::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Item::integer(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListCtrl(), Style::integer()) -> ok +%% @doc See external documentation. +setWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef},Style) + when is_integer(Style) -> + ?CLASS(ThisT,wxListCtrl), + wxe_util:cast(?wxListCtrl_SetWindowStyleFlag, + <>). + + +%% @spec (This::wxListCtrl(), SortCallBack::function()) -> boolean() +%% @doc Sort the items in the list control
+%%
SortCalBack(Item1,Item2) -> integer()
+%%
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. +%%
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), + <> + end, + SortId = wxe_util:get_cbId(Sort), + wxe_util:call(?wxListCtrl_SortItems, <>). +%% @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: wxListEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_list_begin_drag, command_list_begin_rdrag, command_list_begin_label_edit, command_list_end_label_edit, command_list_delete_item, command_list_delete_all_items, command_list_key_down, command_list_insert_item, command_list_col_click, command_list_col_right_click, command_list_col_begin_drag, command_list_col_dragging, command_list_col_end_drag, command_list_item_selected, command_list_item_deselected, command_list_item_right_click, command_list_item_middle_click, command_list_item_activated, command_list_item_focused, command_list_cache_hint
+%% See also the message variant {@link wxEvtHandler:wxList(). #wxList{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getCacheFrom(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetCacheFrom, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getCacheTo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetCacheTo, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetKeyCode, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getIndex(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetIndex, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getColumn(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetColumn, + <>). + +%% @spec (This::wxListEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetPoint, + <>). + +%% @spec (This::wxListEvent()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetLabel, + <>). + +%% @spec (This::wxListEvent()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetText, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getImage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetImage, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetData, + <>). + +%% @spec (This::wxListEvent()) -> integer() +%% @doc See external documentation. +getMask(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetMask, + <>). + +%% @spec (This::wxListEvent()) -> wxListItem:wxListItem() +%% @doc See external documentation. +getItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_GetItem, + <>). + +%% @spec (This::wxListEvent()) -> bool() +%% @doc See external documentation. +isEditCancelled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListEvent), + wxe_util:call(?wxListEvent_IsEditCancelled, + <>). + + %% 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: wxListItem. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxListItem_new_0, + <<>>). + +%% @spec (Item::wxListItem()) -> wxListItem() +%% @doc See external documentation. +new(#wx_ref{type=ItemT,ref=ItemRef}) -> + ?CLASS(ItemT,wxListItem), + wxe_util:construct(?wxListItem_new_1, + <>). + +%% @spec (This::wxListItem()) -> ok +%% @doc See external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_Clear, + <>). + +%% @spec (This::wxListItem()) -> WxListColumnFormat +%% WxListColumnFormat = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxListItem()) -> wx:colour() +%% @doc See external documentation. +getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetBackgroundColour, + <>). + +%% @spec (This::wxListItem()) -> integer() +%% @doc See external documentation. +getColumn(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetColumn, + <>). + +%% @spec (This::wxListItem()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetFont, + <>). + +%% @spec (This::wxListItem()) -> integer() +%% @doc See external documentation. +getId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetId, + <>). + +%% @spec (This::wxListItem()) -> integer() +%% @doc See external documentation. +getImage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetImage, + <>). + +%% @spec (This::wxListItem()) -> integer() +%% @doc See external documentation. +getMask(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetMask, + <>). + +%% @spec (This::wxListItem()) -> integer() +%% @doc See external documentation. +getState(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetState, + <>). + +%% @spec (This::wxListItem()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetText, + <>). + +%% @spec (This::wxListItem()) -> wx:colour() +%% @doc See external documentation. +getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetTextColour, + <>). + +%% @spec (This::wxListItem()) -> integer() +%% @doc See external documentation. +getWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListItem), + wxe_util:call(?wxListItem_GetWidth, + <>). + +%% @spec (This::wxListItem(), Align::WxListColumnFormat) -> ok +%% WxListColumnFormat = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxListItem(), ColBack::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListItem(), Col::integer()) -> ok +%% @doc See external documentation. +setColumn(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetColumn, + <>). + +%% @spec (This::wxListItem(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxListItem), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxListItem_SetFont, + <>). + +%% @spec (This::wxListItem(), Id::integer()) -> ok +%% @doc See external documentation. +setId(#wx_ref{type=ThisT,ref=ThisRef},Id) + when is_integer(Id) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetId, + <>). + +%% @spec (This::wxListItem(), Image::integer()) -> ok +%% @doc See external documentation. +setImage(#wx_ref{type=ThisT,ref=ThisRef},Image) + when is_integer(Image) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetImage, + <>). + +%% @spec (This::wxListItem(), Mask::integer()) -> ok +%% @doc See external documentation. +setMask(#wx_ref{type=ThisT,ref=ThisRef},Mask) + when is_integer(Mask) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetMask, + <>). + +%% @spec (This::wxListItem(), State::integer()) -> ok +%% @doc See external documentation. +setState(#wx_ref{type=ThisT,ref=ThisRef},State) + when is_integer(State) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetState, + <>). + +%% @spec (This::wxListItem(), StateMask::integer()) -> ok +%% @doc See external documentation. +setStateMask(#wx_ref{type=ThisT,ref=ThisRef},StateMask) + when is_integer(StateMask) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetStateMask, + <>). + +%% @spec (This::wxListItem(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListItem(), ColText::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListItem(), Width::integer()) -> ok +%% @doc See external documentation. +setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxListItem), + wxe_util:cast(?wxListItem_SetWidth, + <>). + +%% @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: wxListView. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +clearColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Col) + when is_integer(Col) -> + ?CLASS(ThisT,wxListView), + wxe_util:cast(?wxListView_ClearColumnImage, + <>). + +%% @spec (This::wxListView(), Index::integer()) -> ok +%% @doc See external documentation. +focus(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxListView), + wxe_util:cast(?wxListView_Focus, + <>). + +%% @spec (This::wxListView()) -> integer() +%% @doc See external documentation. +getFirstSelected(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListView), + wxe_util:call(?wxListView_GetFirstSelected, + <>). + +%% @spec (This::wxListView()) -> integer() +%% @doc See external documentation. +getFocusedItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListView), + wxe_util:call(?wxListView_GetFocusedItem, + <>). + +%% @spec (This::wxListView(), Item::integer()) -> integer() +%% @doc See external documentation. +getNextSelected(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxListView), + wxe_util:call(?wxListView_GetNextSelected, + <>). + +%% @spec (This::wxListView(), Index::integer()) -> bool() +%% @doc See external documentation. +isSelected(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxListView), + wxe_util:call(?wxListView_IsSelected, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListView(), Col::integer(), Image::integer()) -> ok +%% @doc See external documentation. +setColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Col,Image) + when is_integer(Col),is_integer(Image) -> + ?CLASS(ThisT,wxListView), + wxe_util:cast(?wxListView_SetColumnImage, + <>). + + %% 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: wxListbook. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListbook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxListbook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxListbook_AssignImageList, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListbook()) -> bool() +%% @doc See external documentation. +deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_DeleteAllPages, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> bool() +%% @doc See external documentation. +deletePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_DeletePage, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> bool() +%% @doc See external documentation. +removePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_RemovePage, + <>). + +%% @spec (This::wxListbook()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetCurrentPage, + <>). + +%% @spec (This::wxListbook()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetImageList, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getPage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetPage, + <>). + +%% @spec (This::wxListbook()) -> integer() +%% @doc See external documentation. +getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetPageCount, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> integer() +%% @doc See external documentation. +getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetPageImage, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> string() +%% @doc See external documentation. +getPageText(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetPageText, + <>). + +%% @spec (This::wxListbook()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_GetSelection, + <>). + +%% @spec (This::wxListbook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()} +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_HitTest, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxListbook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxListbook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxListbook_SetImageList, + <>). + +%% @spec (This::wxListbook(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxListbook), + wxe_util:cast(?wxListbook_SetPageSize, + <>). + +%% @spec (This::wxListbook(), N::integer(), ImageId::integer()) -> bool() +%% @doc See external documentation. +setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId) + when is_integer(N),is_integer(ImageId) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_SetPageImage, + <>). + +%% @spec (This::wxListbook(), N::integer(), StrText::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> integer() +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_SetSelection, + <>). + +%% @spec (This::wxListbook(), N::integer()) -> integer() +%% @doc See external documentation. +changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxListbook), + wxe_util:call(?wxListbook_ChangeSelection, + <>). + +%% @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: wxLogNull. +%% @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 external documentation. +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: wxMDIChildFrame. +%%

This class is derived (and can use functions) from: +%%
{@link wxFrame} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxMDIChildFrame()) -> ok +%% @doc See external documentation. +activate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIChildFrame), + wxe_util:cast(?wxMDIChildFrame_Activate, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMDIChildFrame()) -> ok +%% @doc See external documentation. +restore(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIChildFrame), + wxe_util:cast(?wxMDIChildFrame_Restore, + <>). + +%% @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: wxMDIClientWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxMDIParentFrame. +%%

This class is derived (and can use functions) from: +%%
{@link wxFrame} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxMDIParentFrame()) -> ok +%% @doc See external documentation. +activateNext(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIParentFrame), + wxe_util:cast(?wxMDIParentFrame_ActivateNext, + <>). + +%% @spec (This::wxMDIParentFrame()) -> ok +%% @doc See external documentation. +activatePrevious(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIParentFrame), + wxe_util:cast(?wxMDIParentFrame_ActivatePrevious, + <>). + +%% @spec (This::wxMDIParentFrame()) -> ok +%% @doc See external documentation. +arrangeIcons(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIParentFrame), + wxe_util:cast(?wxMDIParentFrame_ArrangeIcons, + <>). + +%% @spec (This::wxMDIParentFrame()) -> ok +%% @doc See external documentation. +cascade(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIParentFrame), + wxe_util:cast(?wxMDIParentFrame_Cascade, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMDIParentFrame()) -> wxMDIChildFrame:wxMDIChildFrame() +%% @doc See external documentation. +getActiveChild(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIParentFrame), + wxe_util:call(?wxMDIParentFrame_GetActiveChild, + <>). + +%% @spec (This::wxMDIParentFrame()) -> wxMDIClientWindow:wxMDIClientWindow() +%% @doc See external documentation. +getClientWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMDIParentFrame), + wxe_util:call(?wxMDIParentFrame_GetClientWindow, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @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: wxMask. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxMask_new_0, + <<>>). + +%% @spec (Bitmap::wxBitmap:wxBitmap()) -> wxMask() +%% @doc See external documentation. +new(#wx_ref{type=BitmapT,ref=BitmapRef}) -> + ?CLASS(BitmapT,wxBitmap), + wxe_util:construct(?wxMask_new_1, + <>). + +%% @spec (Bitmap::wxBitmap:wxBitmap(),X::integer()|term()) -> wxMask() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Bitmap::wxBitmap:wxBitmap(), PaletteIndex::integer()) -> wxMask() +%%

+%%

+%% new(Bitmap::wxBitmap:wxBitmap(), Colour::wx:colour()) -> wxMask() +%%

+new(#wx_ref{type=BitmapT,ref=BitmapRef},PaletteIndex) + when is_integer(PaletteIndex) -> + ?CLASS(BitmapT,wxBitmap), + wxe_util:construct(?wxMask_new_2_0, + <>); +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, + <>). + +%% @spec (This::wxMask(), Bitmap::wxBitmap:wxBitmap()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMask(),Bitmap::wxBitmap:wxBitmap(),X::integer()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% create(This::wxMask(), Bitmap::wxBitmap:wxBitmap(), PaletteIndex::integer()) -> bool() +%%

+%%

+%% create(This::wxMask(), Bitmap::wxBitmap:wxBitmap(), Colour::wx:colour()) -> bool() +%%

+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, + <>); +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, + <>). + +%% @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: wxMaximizeEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
maximize
+%% See also the message variant {@link wxEvtHandler:wxMaximize(). #wxMaximize{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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: wxMemoryDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxDC} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxMemoryDC_new_0, + <<>>). + +%% @spec (Dc::wxDC:wxDC() | wxBitmap:wxBitmap()) -> wxMemoryDC() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +selectObject(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) -> + ?CLASS(ThisT,wxMemoryDC), + ?CLASS(BmpT,wxBitmap), + wxe_util:cast(?wxMemoryDC_SelectObject, + <>). + +%% @spec (This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +selectObjectAsSource(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) -> + ?CLASS(ThisT,wxMemoryDC), + ?CLASS(BmpT,wxBitmap), + wxe_util:cast(?wxMemoryDC_SelectObjectAsSource, + <>). + +%% @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: wxMenu. +%%

This class is derived (and can use functions) from: +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (Title::string(), [Option]) -> wxMenu() +%% Option = {style, integer()} +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> append(This,Itemid,Text,Submenu, [])

+%%

+%% append(This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem() +%%
Option = {help, string()} | {kind, WxItemKind} +%%
WxItemKind = integer() +%%
WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX +%%

+ +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, + <>). + +%% @spec (This::wxMenu(),Itemid::integer(),Text::string(),X::string()|wxMenu(),X::bool()|term()) -> ok|wxMenuItem:wxMenuItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% append(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok +%%

+%%

+%% append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() +%%
Option = {help, string()} +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMenu()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +appendSeparator(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_AppendSeparator, + <>). + +%% @spec (This::wxMenu()) -> ok +%% @doc See external documentation. +break(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenu), + wxe_util:cast(?wxMenu_Break, + <>). + +%% @spec (This::wxMenu(), Itemid::integer(), Check::bool()) -> ok +%% @doc See external documentation. +check(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Check) + when is_integer(Itemid),is_boolean(Check) -> + ?CLASS(ThisT,wxMenu), + wxe_util:cast(?wxMenu_Check, + <>). + +%% @spec (This::wxMenu(),X::integer()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% delete(This::wxMenu(), Itemid::integer()) -> bool() +%%

+%%

+%% delete(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool() +%%

+delete(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_Delete_1_0, + <>); +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, + <>). + +%% @spec (This::wxMenu(),X::integer()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% 'Destroy'(This::wxMenu(), Itemid::integer()) -> bool() +%%

+%%

+%% 'Destroy'(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool() +%%

+'Destroy'(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_Destroy_1_0, + <>); +'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, + <>). + +%% @spec (This::wxMenu(), Itemid::integer(), Enable::bool()) -> ok +%% @doc See external documentation. +enable(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Enable) + when is_integer(Itemid),is_boolean(Enable) -> + ?CLASS(ThisT,wxMenu), + wxe_util:cast(?wxMenu_Enable, + <>). + +%% @spec (This::wxMenu(),X::integer()|string()) -> wxMenuItem:wxMenuItem()|integer() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% findItem(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem() +%%

+%%

+%% findItem(This::wxMenu(), Item::string()) -> integer() +%%

+findItem(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_FindItem_2, + <>); +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, + <>). + +%% @spec (This::wxMenu(), Position::integer()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +findItemByPosition(#wx_ref{type=ThisT,ref=ThisRef},Position) + when is_integer(Position) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_FindItemByPosition, + <>). + +%% @spec (This::wxMenu(), Itemid::integer()) -> string() +%% @doc See external documentation. +getHelpString(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_GetHelpString, + <>). + +%% @spec (This::wxMenu(), Itemid::integer()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_GetLabel, + <>). + +%% @spec (This::wxMenu()) -> integer() +%% @doc See external documentation. +getMenuItemCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_GetMenuItemCount, + <>). + +%% @spec (This::wxMenu()) -> [wxMenuItem:wxMenuItem()] +%% @doc See external documentation. +getMenuItems(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_GetMenuItems, + <>). + +%% @spec (This::wxMenu()) -> string() +%% @doc See external documentation. +getTitle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_GetTitle, + <>). + +%% @spec (This::wxMenu(),Pos::integer(),X::integer()|term()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% insert(This::wxMenu(), Pos::integer(), Itemid::integer()) -> insert(This,Pos,Itemid, [])

+%%

+%% insert(This::wxMenu(), Pos::integer(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() +%%

+ +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, + <>). + +%% @spec (This::wxMenu(), Pos::integer(), Itemid::integer(), [Option]) -> wxMenuItem:wxMenuItem() +%% Option = {text, string()} | {help, string()} | {kind, WxItemKind} +%% WxItemKind = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok +%%

+%%

+%% insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() +%%
Option = {help, string()} +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMenu(), Pos::integer()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +insertSeparator(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_InsertSeparator, + <>). + +%% @spec (This::wxMenu(), Itemid::integer()) -> bool() +%% @doc See external documentation. +isChecked(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_IsChecked, + <>). + +%% @spec (This::wxMenu(), Itemid::integer()) -> bool() +%% @doc See external documentation. +isEnabled(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_IsEnabled, + <>). + +%% @spec (This::wxMenu(),X::integer()|term()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% prepend(This::wxMenu(), Itemid::integer()) -> prepend(This,Itemid, [])

+%%

+%% prepend(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() +%%

+ +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, + <>). + +%% @spec (This::wxMenu(), Itemid::integer(), [Option]) -> wxMenuItem:wxMenuItem() +%% Option = {text, string()} | {help, string()} | {kind, WxItemKind} +%% WxItemKind = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% prepend(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok +%%

+%%

+%% prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem() +%%
Option = {help, string()} +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMenu()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +prependSeparator(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_PrependSeparator, + <>). + +%% @spec (This::wxMenu(),X::integer()|term()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% remove(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem() +%%

+%%

+%% remove(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem() +%%

+remove(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenu), + wxe_util:call(?wxMenu_Remove_1_0, + <>); +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, + <>). + +%% @spec (This::wxMenu(), Itemid::integer(), HelpString::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenu(), Itemid::integer(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenu(), Title::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxMenuBar. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxMenuBar_new_0, + <<>>). + +%% @spec (Style::integer()) -> wxMenuBar() +%% @doc See external documentation. +new(Style) + when is_integer(Style) -> + wxe_util:construct(?wxMenuBar_new_1, + <>). + +%% @spec (This::wxMenuBar(), Menu::wxMenu:wxMenu(), Title::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer(), Check::bool()) -> ok +%% @doc See external documentation. +check(#wx_ref{type=ThisT,ref=ThisRef},Itemid,Check) + when is_integer(Itemid),is_boolean(Check) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:cast(?wxMenuBar_Check, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer(), Enable::bool()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer(), Flag::bool()) -> ok +%% @doc See external documentation. +enableTop(#wx_ref{type=ThisT,ref=ThisRef},Pos,Flag) + when is_integer(Pos),is_boolean(Flag) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:cast(?wxMenuBar_EnableTop, + <>). + +%% @spec (This::wxMenuBar(), Title::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), MenuString::string(), ItemString::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Id::integer()) -> wxMenuItem:wxMenuItem() +%% @doc See external documentation. +findItem(#wx_ref{type=ThisT,ref=ThisRef},Id) + when is_integer(Id) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_FindItem, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer()) -> string() +%% @doc See external documentation. +getHelpString(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_GetHelpString, + <>). + +%% @spec (This::wxMenuBar()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_GetLabel_0, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_GetLabel_1, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer()) -> string() +%% @doc See external documentation. +getLabelTop(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_GetLabelTop, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer()) -> wxMenu:wxMenu() +%% @doc See external documentation. +getMenu(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_GetMenu, + <>). + +%% @spec (This::wxMenuBar()) -> integer() +%% @doc See external documentation. +getMenuCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_GetMenuCount, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer(), Menu::wxMenu:wxMenu(), Title::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer()) -> bool() +%% @doc See external documentation. +isChecked(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_IsChecked, + <>). + +%% @spec (This::wxMenuBar()) -> bool() +%% @doc See external documentation. +isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_IsEnabled_0, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer()) -> bool() +%% @doc See external documentation. +isEnabled(#wx_ref{type=ThisT,ref=ThisRef},Itemid) + when is_integer(Itemid) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_IsEnabled_1, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer()) -> wxMenu:wxMenu() +%% @doc See external documentation. +remove(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxMenuBar), + wxe_util:call(?wxMenuBar_Remove, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer(), Menu::wxMenu:wxMenu(), Title::string()) -> wxMenu:wxMenu() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer(), HelpString::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), S::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Itemid::integer(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuBar(), Pos::integer(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxMenuEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
menu_open, menu_close, menu_highlight
+%% See also the message variant {@link wxEvtHandler:wxMenu(). #wxMenu{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getMenu(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuEvent), + wxe_util:call(?wxMenuEvent_GetMenu, + <>). + +%% @spec (This::wxMenuEvent()) -> integer() +%% @doc See external documentation. +getMenuId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuEvent), + wxe_util:call(?wxMenuEvent_GetMenuId, + <>). + +%% @spec (This::wxMenuEvent()) -> bool() +%% @doc See external documentation. +isPopup(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuEvent), + wxe_util:call(?wxMenuEvent_IsPopup, + <>). + + %% 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: wxMenuItem. +%% @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 external documentation. +%%
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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMenuItem()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetBitmap, + <>). + +%% @spec (This::wxMenuItem()) -> string() +%% @doc See external documentation. +getHelp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetHelp, + <>). + +%% @spec (This::wxMenuItem()) -> integer() +%% @doc See external documentation. +getId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetId, + <>). + +%% @spec (This::wxMenuItem()) -> WxItemKind +%% WxItemKind = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxMenuItem()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetLabel, + <>). + +%% @spec (Text::string()) -> string() +%% @doc See external documentation. +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 external documentation. +getMenu(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetMenu, + <>). + +%% @spec (This::wxMenuItem()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetText, + <>). + +%% @spec (This::wxMenuItem()) -> wxMenu:wxMenu() +%% @doc See external documentation. +getSubMenu(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_GetSubMenu, + <>). + +%% @spec (This::wxMenuItem()) -> bool() +%% @doc See external documentation. +isCheckable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_IsCheckable, + <>). + +%% @spec (This::wxMenuItem()) -> bool() +%% @doc See external documentation. +isChecked(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_IsChecked, + <>). + +%% @spec (This::wxMenuItem()) -> bool() +%% @doc See external documentation. +isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_IsEnabled, + <>). + +%% @spec (This::wxMenuItem()) -> bool() +%% @doc See external documentation. +isSeparator(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_IsSeparator, + <>). + +%% @spec (This::wxMenuItem()) -> bool() +%% @doc See external documentation. +isSubMenu(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMenuItem), + wxe_util:call(?wxMenuItem_IsSubMenu, + <>). + +%% @spec (This::wxMenuItem(), Bitmap::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) -> + ?CLASS(ThisT,wxMenuItem), + ?CLASS(BitmapT,wxBitmap), + wxe_util:cast(?wxMenuItem_SetBitmap, + <>). + +%% @spec (This::wxMenuItem(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxMenuItem(), Menu::wxMenu:wxMenu()) -> ok +%% @doc See external documentation. +setMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef}) -> + ?CLASS(ThisT,wxMenuItem), + ?CLASS(MenuT,wxMenu), + wxe_util:cast(?wxMenuItem_SetMenu, + <>). + +%% @spec (This::wxMenuItem(), Menu::wxMenu:wxMenu()) -> ok +%% @doc See external documentation. +setSubMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef}) -> + ?CLASS(ThisT,wxMenuItem), + ?CLASS(MenuT,wxMenu), + wxe_util:cast(?wxMenuItem_SetSubMenu, + <>). + +%% @spec (This::wxMenuItem(), Str::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxMessageDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @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: wxMiniFrame. +%%

This class is derived (and can use functions) from: +%%
{@link wxFrame} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxMirrorDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxDC} +%%

+%% @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 external documentation. +new(#wx_ref{type=DcT,ref=DcRef},Mirror) + when is_boolean(Mirror) -> + ?CLASS(DcT,wxDC), + wxe_util:construct(?wxMirrorDC_new, + <>). + +%% @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: wxMouseCaptureChangedEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
mouse_capture_changed
+%% See also the message variant {@link wxEvtHandler:wxMouseCaptureChanged(). #wxMouseCaptureChanged{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getCapturedWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseCaptureChangedEvent), + wxe_util:call(?wxMouseCaptureChangedEvent_GetCapturedWindow, + <>). + + %% 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: wxMouseEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
left_down, left_up, middle_down, middle_up, right_down, right_up, motion, enter_window, leave_window, left_dclick, middle_dclick, right_dclick, mousewheel, nc_left_down, nc_left_up, nc_middle_down, nc_middle_up, nc_right_down, nc_right_up, nc_motion, nc_enter_window, nc_leave_window, nc_left_dclick, nc_middle_dclick, nc_right_dclick
+%% See also the message variant {@link wxEvtHandler:wxMouse(). #wxMouse{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +altDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_AltDown, + <>). + +%% @spec (This::wxMouseEvent(), But::integer()) -> bool() +%% @doc See external documentation. +button(#wx_ref{type=ThisT,ref=ThisRef},But) + when is_integer(But) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_Button, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +cmdDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_CmdDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +controlDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_ControlDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +dragging(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_Dragging, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +entering(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_Entering, + <>). + +%% @spec (This::wxMouseEvent()) -> integer() +%% @doc See external documentation. +getButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetButton, + <>). + +%% @spec (This::wxMouseEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetPosition, + <>). + +%% @spec (This::wxMouseEvent(), Dc::wxDC:wxDC()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getLogicalPosition(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) -> + ?CLASS(ThisT,wxMouseEvent), + ?CLASS(DcT,wxDC), + wxe_util:call(?wxMouseEvent_GetLogicalPosition, + <>). + +%% @spec (This::wxMouseEvent()) -> integer() +%% @doc See external documentation. +getLinesPerAction(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetLinesPerAction, + <>). + +%% @spec (This::wxMouseEvent()) -> integer() +%% @doc See external documentation. +getWheelRotation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetWheelRotation, + <>). + +%% @spec (This::wxMouseEvent()) -> integer() +%% @doc See external documentation. +getWheelDelta(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetWheelDelta, + <>). + +%% @spec (This::wxMouseEvent()) -> integer() +%% @doc See external documentation. +getX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetX, + <>). + +%% @spec (This::wxMouseEvent()) -> integer() +%% @doc See external documentation. +getY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_GetY, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +isButton(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_IsButton, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +isPageScroll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_IsPageScroll, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +leaving(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_Leaving, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +leftDClick(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_LeftDClick, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +leftDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_LeftDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +leftIsDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_LeftIsDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +leftUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_LeftUp, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +metaDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_MetaDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +middleDClick(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_MiddleDClick, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +middleDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_MiddleDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +middleIsDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_MiddleIsDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +middleUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_MiddleUp, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +moving(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_Moving, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +rightDClick(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_RightDClick, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +rightDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_RightDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +rightIsDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_RightIsDown, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +rightUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_RightUp, + <>). + +%% @spec (This::wxMouseEvent()) -> bool() +%% @doc See external documentation. +shiftDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMouseEvent), + wxe_util:call(?wxMouseEvent_ShiftDown, + <>). + + %% 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: wxMoveEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
move
+%% See also the message variant {@link wxEvtHandler:wxMove(). #wxMove{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMoveEvent), + wxe_util:call(?wxMoveEvent_GetPosition, + <>). + + %% 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: wxMultiChoiceDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>|| 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 external documentation. +getSelections(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxMultiChoiceDialog), + wxe_util:call(?wxMultiChoiceDialog_GetSelections, + <>). + +%% @spec (This::wxMultiChoiceDialog(), Selections::[integer()]) -> ok +%% @doc See external documentation. +setSelections(#wx_ref{type=ThisT,ref=ThisRef},Selections) + when is_list(Selections) -> + ?CLASS(ThisT,wxMultiChoiceDialog), + wxe_util:cast(?wxMultiChoiceDialog_SetSelections, + <> || 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: wxNavigationKeyEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
navigation_key
+%% See also the message variant {@link wxEvtHandler:wxNavigationKey(). #wxNavigationKey{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getDirection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:call(?wxNavigationKeyEvent_GetDirection, + <>). + +%% @spec (This::wxNavigationKeyEvent(), BForward::bool()) -> ok +%% @doc See external documentation. +setDirection(#wx_ref{type=ThisT,ref=ThisRef},BForward) + when is_boolean(BForward) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:cast(?wxNavigationKeyEvent_SetDirection, + <>). + +%% @spec (This::wxNavigationKeyEvent()) -> bool() +%% @doc See external documentation. +isWindowChange(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:call(?wxNavigationKeyEvent_IsWindowChange, + <>). + +%% @spec (This::wxNavigationKeyEvent(), BIs::bool()) -> ok +%% @doc See external documentation. +setWindowChange(#wx_ref{type=ThisT,ref=ThisRef},BIs) + when is_boolean(BIs) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:cast(?wxNavigationKeyEvent_SetWindowChange, + <>). + +%% @spec (This::wxNavigationKeyEvent()) -> bool() +%% @doc See external documentation. +isFromTab(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:call(?wxNavigationKeyEvent_IsFromTab, + <>). + +%% @spec (This::wxNavigationKeyEvent(), BIs::bool()) -> ok +%% @doc See external documentation. +setFromTab(#wx_ref{type=ThisT,ref=ThisRef},BIs) + when is_boolean(BIs) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:cast(?wxNavigationKeyEvent_SetFromTab, + <>). + +%% @spec (This::wxNavigationKeyEvent()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getCurrentFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + wxe_util:call(?wxNavigationKeyEvent_GetCurrentFocus, + <>). + +%% @spec (This::wxNavigationKeyEvent(), Win::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +setCurrentFocus(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(ThisT,wxNavigationKeyEvent), + ?CLASS(WinT,wxWindow), + wxe_util:cast(?wxNavigationKeyEvent_SetCurrentFocus, + <>). + + %% 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: wxNcPaintEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
nc_paint
+%% See also the message variant {@link wxEvtHandler:wxNcPaint(). #wxNcPaint{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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: wxNotebook. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxNotebook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxNotebook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxNotebook_AssignImageList, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxNotebook()) -> bool() +%% @doc See external documentation. +deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_DeleteAllPages, + <>). + +%% @spec (This::wxNotebook(), NPage::integer()) -> bool() +%% @doc See external documentation. +deletePage(#wx_ref{type=ThisT,ref=ThisRef},NPage) + when is_integer(NPage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_DeletePage, + <>). + +%% @spec (This::wxNotebook(), NPage::integer()) -> bool() +%% @doc See external documentation. +removePage(#wx_ref{type=ThisT,ref=ThisRef},NPage) + when is_integer(NPage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_RemovePage, + <>). + +%% @spec (This::wxNotebook()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetCurrentPage, + <>). + +%% @spec (This::wxNotebook()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetImageList, + <>). + +%% @spec (This::wxNotebook(), N::integer()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getPage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetPage, + <>). + +%% @spec (This::wxNotebook()) -> integer() +%% @doc See external documentation. +getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetPageCount, + <>). + +%% @spec (This::wxNotebook(), NPage::integer()) -> integer() +%% @doc See external documentation. +getPageImage(#wx_ref{type=ThisT,ref=ThisRef},NPage) + when is_integer(NPage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetPageImage, + <>). + +%% @spec (This::wxNotebook(), NPage::integer()) -> string() +%% @doc See external documentation. +getPageText(#wx_ref{type=ThisT,ref=ThisRef},NPage) + when is_integer(NPage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetPageText, + <>). + +%% @spec (This::wxNotebook()) -> integer() +%% @doc See external documentation. +getRowCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetRowCount, + <>). + +%% @spec (This::wxNotebook()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetSelection, + <>). + +%% @spec (This::wxNotebook()) -> wx:colour() +%% @doc See external documentation. +getThemeBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_GetThemeBackgroundColour, + <>). + +%% @spec (This::wxNotebook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()} +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_HitTest, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxNotebook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxNotebook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxNotebook_SetImageList, + <>). + +%% @spec (This::wxNotebook(), Padding::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setPadding(#wx_ref{type=ThisT,ref=ThisRef},{PaddingW,PaddingH}) + when is_integer(PaddingW),is_integer(PaddingH) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:cast(?wxNotebook_SetPadding, + <>). + +%% @spec (This::wxNotebook(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:cast(?wxNotebook_SetPageSize, + <>). + +%% @spec (This::wxNotebook(), NPage::integer(), NImage::integer()) -> bool() +%% @doc See external documentation. +setPageImage(#wx_ref{type=ThisT,ref=ThisRef},NPage,NImage) + when is_integer(NPage),is_integer(NImage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_SetPageImage, + <>). + +%% @spec (This::wxNotebook(), NPage::integer(), StrText::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxNotebook(), NPage::integer()) -> integer() +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},NPage) + when is_integer(NPage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_SetSelection, + <>). + +%% @spec (This::wxNotebook(), NPage::integer()) -> integer() +%% @doc See external documentation. +changeSelection(#wx_ref{type=ThisT,ref=ThisRef},NPage) + when is_integer(NPage) -> + ?CLASS(ThisT,wxNotebook), + wxe_util:call(?wxNotebook_ChangeSelection, + <>). + +%% @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: wxNotebookEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_notebook_page_changed, command_notebook_page_changing
+%% See also the message variant {@link wxEvtHandler:wxNotebook(). #wxNotebook{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getOldSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebookEvent), + wxe_util:call(?wxNotebookEvent_GetOldSelection, + <>). + +%% @spec (This::wxNotebookEvent()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotebookEvent), + wxe_util:call(?wxNotebookEvent_GetSelection, + <>). + +%% @spec (This::wxNotebookEvent(), NOldSel::integer()) -> ok +%% @doc See external documentation. +setOldSelection(#wx_ref{type=ThisT,ref=ThisRef},NOldSel) + when is_integer(NOldSel) -> + ?CLASS(ThisT,wxNotebookEvent), + wxe_util:cast(?wxNotebookEvent_SetOldSelection, + <>). + +%% @spec (This::wxNotebookEvent(), NSel::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},NSel) + when is_integer(NSel) -> + ?CLASS(ThisT,wxNotebookEvent), + wxe_util:cast(?wxNotebookEvent_SetSelection, + <>). + + %% 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: wxNotifyEvent. +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +allow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotifyEvent), + wxe_util:cast(?wxNotifyEvent_Allow, + <>). + +%% @spec (This::wxNotifyEvent()) -> bool() +%% @doc See external documentation. +isAllowed(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotifyEvent), + wxe_util:call(?wxNotifyEvent_IsAllowed, + <>). + +%% @spec (This::wxNotifyEvent()) -> ok +%% @doc See external documentation. +veto(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxNotifyEvent), + wxe_util:cast(?wxNotifyEvent_Veto, + <>). + + %% 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: wxPageSetupDialog. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPageSetupDialog()) -> wxPageSetupDialogData:wxPageSetupDialogData() +%% @doc See external documentation. +getPageSetupData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialog), + wxe_util:call(?wxPageSetupDialog_GetPageSetupData, + <>). + +%% @spec (This::wxPageSetupDialog()) -> integer() +%% @doc See external documentation. +showModal(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialog), + wxe_util:call(?wxPageSetupDialog_ShowModal, + <>). + +%% @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: wxPageSetupDialogData. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxPageSetupDialogData_new_0, + <<>>). + +%% @spec (PrintData::wxPrintData:wxPrintData() | wxPageSetupDialogData()) -> wxPageSetupDialogData() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enableHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_EnableHelp, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enableMargins(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_EnableMargins, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enableOrientation(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_EnableOrientation, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enablePaper(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_EnablePaper, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enablePrinter(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_EnablePrinter, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getDefaultMinMargins(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetDefaultMinMargins, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getEnableMargins(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetEnableMargins, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getEnableOrientation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetEnableOrientation, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getEnablePaper(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetEnablePaper, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getEnablePrinter(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetEnablePrinter, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getEnableHelp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetEnableHelp, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +getDefaultInfo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetDefaultInfo, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetMarginTopLeft, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetMarginBottomRight, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getMinMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetMinMarginTopLeft, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getMinMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetMinMarginBottomRight, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> integer() +%% @doc See external documentation. +getPaperId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetPaperId, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getPaperSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetPaperSize, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> wxPrintData:wxPrintData() +%% @doc See external documentation. +getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_GetPrintData, + <>). + +%% @spec (This::wxPageSetupDialogData()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:call(?wxPageSetupDialogData_IsOk, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +setDefaultInfo(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetDefaultInfo, + <>). + +%% @spec (This::wxPageSetupDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +setDefaultMinMargins(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetDefaultMinMargins, + <>). + +%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +setMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetMarginTopLeft, + <>). + +%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +setMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetMarginBottomRight, + <>). + +%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +setMinMarginTopLeft(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetMinMarginTopLeft, + <>). + +%% @spec (This::wxPageSetupDialogData(), Pt::{X::integer(),Y::integer()}) -> ok +%% @doc See external documentation. +setMinMarginBottomRight(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetMinMarginBottomRight, + <>). + +%% @spec (This::wxPageSetupDialogData(), Id::integer()) -> ok +%% @doc See external documentation. +setPaperId(#wx_ref{type=ThisT,ref=ThisRef},Id) + when is_integer(Id) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetPaperId, + <>). + +%% @spec (This::wxPageSetupDialogData(),X::integer()|term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setPaperSize(This::wxPageSetupDialogData(), Id::integer()) -> ok +%%

+%%

+%% setPaperSize(This::wxPageSetupDialogData(), Sz::{W::integer(),H::integer()}) -> ok +%%

+setPaperSize(#wx_ref{type=ThisT,ref=ThisRef},Id) + when is_integer(Id) -> + ?CLASS(ThisT,wxPageSetupDialogData), + wxe_util:cast(?wxPageSetupDialogData_SetPaperSize_1_0, + <>); +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, + <>). + +%% @spec (This::wxPageSetupDialogData(), PrintData::wxPrintData:wxPrintData()) -> ok +%% @doc See external documentation. +setPrintData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintDataT,ref=PrintDataRef}) -> + ?CLASS(ThisT,wxPageSetupDialogData), + ?CLASS(PrintDataT,wxPrintData), + wxe_util:cast(?wxPageSetupDialogData_SetPrintData, + <>). + +%% @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: wxPaintDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindowDC} +%%
{@link wxDC} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxPaintDC_new_0, + <<>>). + +%% @spec (Win::wxWindow:wxWindow()) -> wxPaintDC() +%% @doc See external documentation. +new(#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(WinT,wxWindow), + wxe_util:construct(?wxPaintDC_new_1, + <>). + +%% @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: wxPaintEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
paint, paint_icon
+%% See also the message variant {@link wxEvtHandler:wxPaint(). #wxPaint{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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: wxPalette. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxPalette_new_0, + <<>>). + +%% @spec (Red::binary(), Green::binary(), Blue::binary()) -> wxPalette() +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxPalette()) -> integer() +%% @doc See external documentation. +getColoursCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPalette), + wxe_util:call(?wxPalette_GetColoursCount, + <>). + +%% @spec (This::wxPalette(), Red::integer(), Green::integer(), Blue::integer()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPalette(), Pixel::integer()) -> {bool(),Red::integer(),Green::integer(),Blue::integer()} +%% @doc See external documentation. +getRGB(#wx_ref{type=ThisT,ref=ThisRef},Pixel) + when is_integer(Pixel) -> + ?CLASS(ThisT,wxPalette), + wxe_util:call(?wxPalette_GetRGB, + <>). + +%% @spec (This::wxPalette()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPalette), + wxe_util:call(?wxPalette_IsOk, + <>). + +%% @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: wxPaletteChangedEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
palette_changed
+%% See also the message variant {@link wxEvtHandler:wxPaletteChanged(). #wxPaletteChanged{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +setChangedWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(ThisT,wxPaletteChangedEvent), + ?CLASS(WinT,wxWindow), + wxe_util:cast(?wxPaletteChangedEvent_SetChangedWindow, + <>). + +%% @spec (This::wxPaletteChangedEvent()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getChangedWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPaletteChangedEvent), + wxe_util:call(?wxPaletteChangedEvent_GetChangedWindow, + <>). + + %% 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: wxPanel. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPanel()) -> ok +%% @doc See external documentation. +initDialog(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPanel), + wxe_util:cast(?wxPanel_InitDialog, + <>). + +%% @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: wxPasswordEntryDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxTextEntryDialog} +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @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: wxPen. +%% @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 external documentation. +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 external documentation. +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 external documentation. +getCap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPen), + wxe_util:call(?wxPen_GetCap, + <>). + +%% @spec (This::wxPen()) -> wx:colour() +%% @doc See external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPen), + wxe_util:call(?wxPen_GetColour, + <>). + +%% @spec (This::wxPen()) -> integer() +%% @doc See external documentation. +getJoin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPen), + wxe_util:call(?wxPen_GetJoin, + <>). + +%% @spec (This::wxPen()) -> integer() +%% @doc See external documentation. +getStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPen), + wxe_util:call(?wxPen_GetStyle, + <>). + +%% @spec (This::wxPen()) -> integer() +%% @doc See external documentation. +getWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPen), + wxe_util:call(?wxPen_GetWidth, + <>). + +%% @spec (This::wxPen()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPen), + wxe_util:call(?wxPen_IsOk, + <>). + +%% @spec (This::wxPen(), CapStyle::integer()) -> ok +%% @doc See external documentation. +setCap(#wx_ref{type=ThisT,ref=ThisRef},CapStyle) + when is_integer(CapStyle) -> + ?CLASS(ThisT,wxPen), + wxe_util:cast(?wxPen_SetCap, + <>). + +%% @spec (This::wxPen(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPen(), Red::integer(), Green::integer(), Blue::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPen(), JoinStyle::integer()) -> ok +%% @doc See external documentation. +setJoin(#wx_ref{type=ThisT,ref=ThisRef},JoinStyle) + when is_integer(JoinStyle) -> + ?CLASS(ThisT,wxPen), + wxe_util:cast(?wxPen_SetJoin, + <>). + +%% @spec (This::wxPen(), Style::integer()) -> ok +%% @doc See external documentation. +setStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) + when is_integer(Style) -> + ?CLASS(ThisT,wxPen), + wxe_util:cast(?wxPen_SetStyle, + <>). + +%% @spec (This::wxPen(), Width::integer()) -> ok +%% @doc See external documentation. +setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxPen), + wxe_util:cast(?wxPen_SetWidth, + <>). + +%% @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: wxPickerBase. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +setInternalMargin(#wx_ref{type=ThisT,ref=ThisRef},Newmargin) + when is_integer(Newmargin) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:cast(?wxPickerBase_SetInternalMargin, + <>). + +%% @spec (This::wxPickerBase()) -> integer() +%% @doc See external documentation. +getInternalMargin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_GetInternalMargin, + <>). + +%% @spec (This::wxPickerBase(), Prop::integer()) -> ok +%% @doc See external documentation. +setTextCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef},Prop) + when is_integer(Prop) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:cast(?wxPickerBase_SetTextCtrlProportion, + <>). + +%% @spec (This::wxPickerBase(), Prop::integer()) -> ok +%% @doc See external documentation. +setPickerCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef},Prop) + when is_integer(Prop) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:cast(?wxPickerBase_SetPickerCtrlProportion, + <>). + +%% @spec (This::wxPickerBase()) -> integer() +%% @doc See external documentation. +getTextCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_GetTextCtrlProportion, + <>). + +%% @spec (This::wxPickerBase()) -> integer() +%% @doc See external documentation. +getPickerCtrlProportion(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_GetPickerCtrlProportion, + <>). + +%% @spec (This::wxPickerBase()) -> bool() +%% @doc See external documentation. +hasTextCtrl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_HasTextCtrl, + <>). + +%% @spec (This::wxPickerBase()) -> wxTextCtrl:wxTextCtrl() +%% @doc See external documentation. +getTextCtrl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_GetTextCtrl, + <>). + +%% @spec (This::wxPickerBase()) -> bool() +%% @doc See external documentation. +isTextCtrlGrowable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_IsTextCtrlGrowable, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPickerBase()) -> bool() +%% @doc See external documentation. +isPickerCtrlGrowable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPickerBase), + wxe_util:call(?wxPickerBase_IsPickerCtrlGrowable, + <>). + + %% 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: wxPostScriptDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxDC} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxPostScriptDC_new_0, + <<>>). + +%% @spec (PrintData::wxPrintData:wxPrintData()) -> wxPostScriptDC() +%% @doc See external documentation. +new(#wx_ref{type=PrintDataT,ref=PrintDataRef}) -> + ?CLASS(PrintDataT,wxPrintData), + wxe_util:construct(?wxPostScriptDC_new_1, + <>). + +%% @spec (Ppi::integer()) -> ok +%% @doc See external documentation. +setResolution(Ppi) + when is_integer(Ppi) -> + wxe_util:cast(?wxPostScriptDC_SetResolution, + <>). + +%% @spec () -> integer() +%% @doc See external documentation. +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: wxPreviewCanvas. +%%

This class is derived (and can use functions) from: +%%
{@link wxScrolledWindow} +%%
{@link wxPanel} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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: wxPreviewControlBar. +%%

This class is derived (and can use functions) from: +%%
{@link wxPanel} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPreviewControlBar()) -> ok +%% @doc See external documentation. +createButtons(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPreviewControlBar), + wxe_util:cast(?wxPreviewControlBar_CreateButtons, + <>). + +%% @spec (This::wxPreviewControlBar()) -> wxPrintPreview:wxPrintPreview() +%% @doc See external documentation. +getPrintPreview(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPreviewControlBar), + wxe_util:call(?wxPreviewControlBar_GetPrintPreview, + <>). + +%% @spec (This::wxPreviewControlBar()) -> integer() +%% @doc See external documentation. +getZoomControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPreviewControlBar), + wxe_util:call(?wxPreviewControlBar_GetZoomControl, + <>). + +%% @spec (This::wxPreviewControlBar(), Zoom::integer()) -> ok +%% @doc See external documentation. +setZoomControl(#wx_ref{type=ThisT,ref=ThisRef},Zoom) + when is_integer(Zoom) -> + ?CLASS(ThisT,wxPreviewControlBar), + wxe_util:cast(?wxPreviewControlBar_SetZoomControl, + <>). + +%% @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: wxPreviewFrame. +%%

This class is derived (and can use functions) from: +%%
{@link wxFrame} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPreviewFrame()) -> ok +%% @doc See external documentation. +createControlBar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPreviewFrame), + wxe_util:cast(?wxPreviewFrame_CreateControlBar, + <>). + +%% @spec (This::wxPreviewFrame()) -> ok +%% @doc See external documentation. +createCanvas(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPreviewFrame), + wxe_util:cast(?wxPreviewFrame_CreateCanvas, + <>). + +%% @spec (This::wxPreviewFrame()) -> ok +%% @doc See external documentation. +initialize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPreviewFrame), + wxe_util:cast(?wxPreviewFrame_Initialize, + <>). + +%% @spec (This::wxPreviewFrame(), Event::wxCloseEvent:wxCloseEvent()) -> ok +%% @doc See external documentation. +onCloseWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) -> + ?CLASS(ThisT,wxPreviewFrame), + ?CLASS(EventT,wxCloseEvent), + wxe_util:cast(?wxPreviewFrame_OnCloseWindow, + <>). + +%% @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: wxPrintData. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxPrintData_new_0, + <<>>). + +%% @spec (PrintData::wxPrintData()) -> wxPrintData() +%% @doc See external documentation. +new(#wx_ref{type=PrintDataT,ref=PrintDataRef}) -> + ?CLASS(PrintDataT,wxPrintData), + wxe_util:construct(?wxPrintData_new_1, + <>). + +%% @spec (This::wxPrintData()) -> bool() +%% @doc See external documentation. +getCollate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetCollate, + <>). + +%% @spec (This::wxPrintData()) -> WxPrintBin +%% WxPrintBin = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxPrintData()) -> bool() +%% @doc See external documentation. +getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetColour, + <>). + +%% @spec (This::wxPrintData()) -> WxDuplexMode +%% WxDuplexMode = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxPrintData()) -> integer() +%% @doc See external documentation. +getNoCopies(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetNoCopies, + <>). + +%% @spec (This::wxPrintData()) -> integer() +%% @doc See external documentation. +getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetOrientation, + <>). + +%% @spec (This::wxPrintData()) -> integer() +%% @doc See external documentation. +getPaperId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetPaperId, + <>). + +%% @spec (This::wxPrintData()) -> string() +%% @doc See external documentation. +getPrinterName(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetPrinterName, + <>). + +%% @spec (This::wxPrintData()) -> integer() +%% @doc See external documentation. +getQuality(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_GetQuality, + <>). + +%% @spec (This::wxPrintData()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:call(?wxPrintData_IsOk, + <>). + +%% @spec (This::wxPrintData(), Bin::WxPrintBin) -> ok +%% WxPrintBin = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxPrintData(), Flag::bool()) -> ok +%% @doc See external documentation. +setCollate(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:cast(?wxPrintData_SetCollate, + <>). + +%% @spec (This::wxPrintData(), Colour::bool()) -> ok +%% @doc See external documentation. +setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) + when is_boolean(Colour) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:cast(?wxPrintData_SetColour, + <>). + +%% @spec (This::wxPrintData(), Duplex::WxDuplexMode) -> ok +%% WxDuplexMode = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxPrintData(), V::integer()) -> ok +%% @doc See external documentation. +setNoCopies(#wx_ref{type=ThisT,ref=ThisRef},V) + when is_integer(V) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:cast(?wxPrintData_SetNoCopies, + <>). + +%% @spec (This::wxPrintData(), Orient::integer()) -> ok +%% @doc See external documentation. +setOrientation(#wx_ref{type=ThisT,ref=ThisRef},Orient) + when is_integer(Orient) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:cast(?wxPrintData_SetOrientation, + <>). + +%% @spec (This::wxPrintData(), SizeId::integer()) -> ok +%% @doc See external documentation. +setPaperId(#wx_ref{type=ThisT,ref=ThisRef},SizeId) + when is_integer(SizeId) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:cast(?wxPrintData_SetPaperId, + <>). + +%% @spec (This::wxPrintData(), Name::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrintData(), Quality::integer()) -> ok +%% @doc See external documentation. +setQuality(#wx_ref{type=ThisT,ref=ThisRef},Quality) + when is_integer(Quality) -> + ?CLASS(ThisT,wxPrintData), + wxe_util:cast(?wxPrintData_SetQuality, + <>). + +%% @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: wxPrintDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +%%
Alternatives: +%%

+%% new(Parent::wxWindow:wxWindow(), [Option]) -> wxPrintDialog() +%%
Option = {data, wxPrintDialogData:wxPrintDialogData()} +%%

+%%

+%% new(Parent::wxWindow:wxWindow(), Data::wxPrintData:wxPrintData()) -> wxPrintDialog() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxPrintDialog()) -> wxPrintDialogData:wxPrintDialogData() +%% @doc See external documentation. +getPrintDialogData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialog), + wxe_util:call(?wxPrintDialog_GetPrintDialogData, + <>). + +%% @spec (This::wxPrintDialog()) -> wxDC:wxDC() +%% @doc See external documentation. +getPrintDC(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialog), + wxe_util:call(?wxPrintDialog_GetPrintDC, + <>). + +%% @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: wxPrintDialogData. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxPrintDialogData_new_0, + <<>>). + +%% @spec (DialogData::wxPrintDialogData() | wxPrintData:wxPrintData()) -> wxPrintDialogData() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enableHelp(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_EnableHelp, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enablePageNumbers(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_EnablePageNumbers, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enablePrintToFile(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_EnablePrintToFile, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +enableSelection(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_EnableSelection, + <>). + +%% @spec (This::wxPrintDialogData()) -> bool() +%% @doc See external documentation. +getAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetAllPages, + <>). + +%% @spec (This::wxPrintDialogData()) -> bool() +%% @doc See external documentation. +getCollate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetCollate, + <>). + +%% @spec (This::wxPrintDialogData()) -> integer() +%% @doc See external documentation. +getFromPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetFromPage, + <>). + +%% @spec (This::wxPrintDialogData()) -> integer() +%% @doc See external documentation. +getMaxPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetMaxPage, + <>). + +%% @spec (This::wxPrintDialogData()) -> integer() +%% @doc See external documentation. +getMinPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetMinPage, + <>). + +%% @spec (This::wxPrintDialogData()) -> integer() +%% @doc See external documentation. +getNoCopies(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetNoCopies, + <>). + +%% @spec (This::wxPrintDialogData()) -> wxPrintData:wxPrintData() +%% @doc See external documentation. +getPrintData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetPrintData, + <>). + +%% @spec (This::wxPrintDialogData()) -> bool() +%% @doc See external documentation. +getPrintToFile(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetPrintToFile, + <>). + +%% @spec (This::wxPrintDialogData()) -> bool() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetSelection, + <>). + +%% @spec (This::wxPrintDialogData()) -> integer() +%% @doc See external documentation. +getToPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_GetToPage, + <>). + +%% @spec (This::wxPrintDialogData()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:call(?wxPrintDialogData_IsOk, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +setCollate(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetCollate, + <>). + +%% @spec (This::wxPrintDialogData(), V::integer()) -> ok +%% @doc See external documentation. +setFromPage(#wx_ref{type=ThisT,ref=ThisRef},V) + when is_integer(V) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetFromPage, + <>). + +%% @spec (This::wxPrintDialogData(), V::integer()) -> ok +%% @doc See external documentation. +setMaxPage(#wx_ref{type=ThisT,ref=ThisRef},V) + when is_integer(V) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetMaxPage, + <>). + +%% @spec (This::wxPrintDialogData(), V::integer()) -> ok +%% @doc See external documentation. +setMinPage(#wx_ref{type=ThisT,ref=ThisRef},V) + when is_integer(V) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetMinPage, + <>). + +%% @spec (This::wxPrintDialogData(), V::integer()) -> ok +%% @doc See external documentation. +setNoCopies(#wx_ref{type=ThisT,ref=ThisRef},V) + when is_integer(V) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetNoCopies, + <>). + +%% @spec (This::wxPrintDialogData(), PrintData::wxPrintData:wxPrintData()) -> ok +%% @doc See external documentation. +setPrintData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintDataT,ref=PrintDataRef}) -> + ?CLASS(ThisT,wxPrintDialogData), + ?CLASS(PrintDataT,wxPrintData), + wxe_util:cast(?wxPrintDialogData_SetPrintData, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +setPrintToFile(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetPrintToFile, + <>). + +%% @spec (This::wxPrintDialogData(), Flag::bool()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_boolean(Flag) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetSelection, + <>). + +%% @spec (This::wxPrintDialogData(), V::integer()) -> ok +%% @doc See external documentation. +setToPage(#wx_ref{type=ThisT,ref=ThisRef},V) + when is_integer(V) -> + ?CLASS(ThisT,wxPrintDialogData), + wxe_util:cast(?wxPrintDialogData_SetToPage, + <>). + +%% @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: wxPrintPreview. +%% @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 external documentation. +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, + <>). + +%% @spec (Printout::wxPrintout:wxPrintout(), PrintoutForPrinting::wxPrintout:wxPrintout(), Data::wxPrintData:wxPrintData()) -> wxPrintPreview() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrintPreview()) -> wxPreviewCanvas:wxPreviewCanvas() +%% @doc See external documentation. +getCanvas(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetCanvas, + <>). + +%% @spec (This::wxPrintPreview()) -> integer() +%% @doc See external documentation. +getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetCurrentPage, + <>). + +%% @spec (This::wxPrintPreview()) -> wxFrame:wxFrame() +%% @doc See external documentation. +getFrame(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetFrame, + <>). + +%% @spec (This::wxPrintPreview()) -> integer() +%% @doc See external documentation. +getMaxPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetMaxPage, + <>). + +%% @spec (This::wxPrintPreview()) -> integer() +%% @doc See external documentation. +getMinPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetMinPage, + <>). + +%% @spec (This::wxPrintPreview()) -> wxPrintout:wxPrintout() +%% @doc See external documentation. +getPrintout(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetPrintout, + <>). + +%% @spec (This::wxPrintPreview()) -> wxPrintout:wxPrintout() +%% @doc See external documentation. +getPrintoutForPrinting(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_GetPrintoutForPrinting, + <>). + +%% @spec (This::wxPrintPreview()) -> bool() +%% @doc See external documentation. +isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_IsOk, + <>). + +%% @spec (This::wxPrintPreview(), Canvas::wxPreviewCanvas:wxPreviewCanvas(), Dc::wxDC:wxDC()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrintPreview(), Interactive::bool()) -> bool() +%% @doc See external documentation. +print(#wx_ref{type=ThisT,ref=ThisRef},Interactive) + when is_boolean(Interactive) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_Print, + <>). + +%% @spec (This::wxPrintPreview(), PageNum::integer()) -> bool() +%% @doc See external documentation. +renderPage(#wx_ref{type=ThisT,ref=ThisRef},PageNum) + when is_integer(PageNum) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_RenderPage, + <>). + +%% @spec (This::wxPrintPreview(), Canvas::wxPreviewCanvas:wxPreviewCanvas()) -> ok +%% @doc See external documentation. +setCanvas(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CanvasT,ref=CanvasRef}) -> + ?CLASS(ThisT,wxPrintPreview), + ?CLASS(CanvasT,wxPreviewCanvas), + wxe_util:cast(?wxPrintPreview_SetCanvas, + <>). + +%% @spec (This::wxPrintPreview(), PageNum::integer()) -> bool() +%% @doc See external documentation. +setCurrentPage(#wx_ref{type=ThisT,ref=ThisRef},PageNum) + when is_integer(PageNum) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:call(?wxPrintPreview_SetCurrentPage, + <>). + +%% @spec (This::wxPrintPreview(), Frame::wxFrame:wxFrame()) -> ok +%% @doc See external documentation. +setFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef}) -> + ?CLASS(ThisT,wxPrintPreview), + ?CLASS(FrameT,wxFrame), + wxe_util:cast(?wxPrintPreview_SetFrame, + <>). + +%% @spec (This::wxPrintPreview(), Printout::wxPrintout:wxPrintout()) -> ok +%% @doc See external documentation. +setPrintout(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PrintoutT,ref=PrintoutRef}) -> + ?CLASS(ThisT,wxPrintPreview), + ?CLASS(PrintoutT,wxPrintout), + wxe_util:cast(?wxPrintPreview_SetPrintout, + <>). + +%% @spec (This::wxPrintPreview(), Percent::integer()) -> ok +%% @doc See external documentation. +setZoom(#wx_ref{type=ThisT,ref=ThisRef},Percent) + when is_integer(Percent) -> + ?CLASS(ThisT,wxPrintPreview), + wxe_util:cast(?wxPrintPreview_SetZoom, + <>). + +%% @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: wxPrinter. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow(), Printout::wxPrintout:wxPrintout()) -> wxWindow:wxWindow() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrinter()) -> bool() +%% @doc See external documentation. +getAbort(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrinter), + wxe_util:call(?wxPrinter_GetAbort, + <>). + +%% @spec () -> WxPrinterError +%% WxPrinterError = integer() +%% @doc See external documentation. +%%
WxPrinterError is one of ?wxPRINTER_NO_ERROR | ?wxPRINTER_CANCELLED | ?wxPRINTER_ERROR +getLastError() -> + wxe_util:call(?wxPrinter_GetLastError, + <<>>). + +%% @spec (This::wxPrinter()) -> wxPrintDialogData:wxPrintDialogData() +%% @doc See external documentation. +getPrintDialogData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrinter), + wxe_util:call(?wxPrinter_GetPrintDialogData, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow()) -> wxDC:wxDC() +%% @doc See external documentation. +printDialog(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}) -> + ?CLASS(ThisT,wxPrinter), + ?CLASS(ParentT,wxWindow), + wxe_util:call(?wxPrinter_PrintDialog, + <>). + +%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow(), Printout::wxPrintout:wxPrintout(), Message::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrinter(), Parent::wxWindow:wxWindow()) -> bool() +%% @doc See external documentation. +setup(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}) -> + ?CLASS(ThisT,wxPrinter), + ?CLASS(ParentT,wxWindow), + wxe_util:call(?wxPrinter_Setup, + <>). + +%% @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: wxPrintout. +%% @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.
+%%
OnPrintPage(This,Page) -> boolean() 
+%%
OnPreparePrinting(This) -> term()   
+%%
OnBeginPrinting(This) -> term()   
+%%
OnEndPrinting(This) -> term()   
+%%
OnBeginDocument(This,StartPage,EndPage) -> boolean()  
+%%
OnEndDocument(This) -> term()  
+%%
HasPage(This,Page)} -> boolean()   
+%%
GetPageInfo(This) -> {MinPage:.integer(), MaxPage::integer(), PageFrom::integer(), PageTo::integer()}  
+%% The This argument is the wxPrintout object reference to this object +%%
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), + <> + 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 external documentation. +getDC(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetDC, + <>). + +%% @spec (This::wxPrintout()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getPageSizeMM(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetPageSizeMM, + <>). + +%% @spec (This::wxPrintout()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getPageSizePixels(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetPageSizePixels, + <>). + +%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getPaperRectPixels(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetPaperRectPixels, + <>). + +%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPPIPrinter(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetPPIPrinter, + <>). + +%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPPIScreen(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetPPIScreen, + <>). + +%% @spec (This::wxPrintout()) -> string() +%% @doc See external documentation. +getTitle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetTitle, + <>). + +%% @spec (This::wxPrintout()) -> bool() +%% @doc See external documentation. +isPreview(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_IsPreview, + <>). + +%% @spec (This::wxPrintout(), ImageSize::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +fitThisSizeToPaper(#wx_ref{type=ThisT,ref=ThisRef},{ImageSizeW,ImageSizeH}) + when is_integer(ImageSizeW),is_integer(ImageSizeH) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_FitThisSizeToPaper, + <>). + +%% @spec (This::wxPrintout(), ImageSize::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +fitThisSizeToPage(#wx_ref{type=ThisT,ref=ThisRef},{ImageSizeW,ImageSizeH}) + when is_integer(ImageSizeW),is_integer(ImageSizeH) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_FitThisSizeToPage, + <>). + +%% @spec (This::wxPrintout(), ImageSize::{W::integer(),H::integer()}, PageSetupData::wxPageSetupDialogData:wxPageSetupDialogData()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxPrintout()) -> ok +%% @doc See external documentation. +mapScreenSizeToPaper(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_MapScreenSizeToPaper, + <>). + +%% @spec (This::wxPrintout()) -> ok +%% @doc See external documentation. +mapScreenSizeToPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_MapScreenSizeToPage, + <>). + +%% @spec (This::wxPrintout(), PageSetupData::wxPageSetupDialogData:wxPageSetupDialogData()) -> ok +%% @doc See external documentation. +mapScreenSizeToPageMargins(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageSetupDataT,ref=PageSetupDataRef}) -> + ?CLASS(ThisT,wxPrintout), + ?CLASS(PageSetupDataT,wxPageSetupDialogData), + wxe_util:cast(?wxPrintout_MapScreenSizeToPageMargins, + <>). + +%% @spec (This::wxPrintout()) -> ok +%% @doc See external documentation. +mapScreenSizeToDevice(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_MapScreenSizeToDevice, + <>). + +%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getLogicalPaperRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetLogicalPaperRect, + <>). + +%% @spec (This::wxPrintout()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getLogicalPageRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:call(?wxPrintout_GetLogicalPageRect, + <>). + +%% @spec (This::wxPrintout(), PageSetupData::wxPageSetupDialogData:wxPageSetupDialogData()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getLogicalPageMarginsRect(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageSetupDataT,ref=PageSetupDataRef}) -> + ?CLASS(ThisT,wxPrintout), + ?CLASS(PageSetupDataT,wxPageSetupDialogData), + wxe_util:call(?wxPrintout_GetLogicalPageMarginsRect, + <>). + +%% @spec (This::wxPrintout(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +setLogicalOrigin(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_SetLogicalOrigin, + <>). + +%% @spec (This::wxPrintout(), Xoff::integer(), Yoff::integer()) -> ok +%% @doc See external documentation. +offsetLogicalOrigin(#wx_ref{type=ThisT,ref=ThisRef},Xoff,Yoff) + when is_integer(Xoff),is_integer(Yoff) -> + ?CLASS(ThisT,wxPrintout), + wxe_util:cast(?wxPrintout_OffsetLogicalOrigin, + <>). + +%% @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: wxProgressDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +resume(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxProgressDialog), + wxe_util:cast(?wxProgressDialog_Resume, + <>). + +%% @spec (This::wxProgressDialog()) -> ok +%% @doc See external documentation. +update(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxProgressDialog), + wxe_util:cast(?wxProgressDialog_Update_0, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxQueryNewPaletteEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
query_new_palette
+%% See also the message variant {@link wxEvtHandler:wxQueryNewPalette(). #wxQueryNewPalette{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +setPaletteRealized(#wx_ref{type=ThisT,ref=ThisRef},Realized) + when is_boolean(Realized) -> + ?CLASS(ThisT,wxQueryNewPaletteEvent), + wxe_util:cast(?wxQueryNewPaletteEvent_SetPaletteRealized, + <>). + +%% @spec (This::wxQueryNewPaletteEvent()) -> bool() +%% @doc See external documentation. +getPaletteRealized(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxQueryNewPaletteEvent), + wxe_util:call(?wxQueryNewPaletteEvent_GetPaletteRealized, + <>). + + %% 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: wxRadioBox. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>|| 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 external documentation. +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, + <>|| 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 external documentation. +%%
Alternatives: +%%

+%% enable(This::wxRadioBox(), N::integer()) -> enable(This,N, [])

+%%

+%% enable(This::wxRadioBox(), [Option]) -> bool() +%%
Option = {enable, bool()} +%%

+ +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, + <>). + +%% @spec (This::wxRadioBox(), N::integer(), [Option]) -> bool() +%% Option = {enable, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRadioBox()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetSelection, + <>). + +%% @spec (This::wxRadioBox(), N::integer()) -> string() +%% @doc See external documentation. +getString(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetString, + <>). + +%% @spec (This::wxRadioBox(), N::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:cast(?wxRadioBox_SetSelection, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% show(This::wxRadioBox(), N::integer()) -> show(This,N, [])

+%%

+%% show(This::wxRadioBox(), [Option]) -> bool() +%%
Option = {show, bool()} +%%

+ +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, + <>). + +%% @spec (This::wxRadioBox(), N::integer(), [Option]) -> bool() +%% Option = {show, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRadioBox()) -> integer() +%% @doc See external documentation. +getColumnCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetColumnCount, + <>). + +%% @spec (This::wxRadioBox(), N::integer()) -> string() +%% @doc See external documentation. +getItemHelpText(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetItemHelpText, + <>). + +%% @spec (This::wxRadioBox(), Item::integer()) -> wxToolTip:wxToolTip() +%% @doc See external documentation. +getItemToolTip(#wx_ref{type=ThisT,ref=ThisRef},Item) + when is_integer(Item) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetItemToolTip, + <>). + +%% @spec (This::wxRadioBox(), Pt::{X::integer(),Y::integer()}) -> integer() +%% @doc See external documentation. +getItemFromPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetItemFromPoint, + <>). + +%% @spec (This::wxRadioBox()) -> integer() +%% @doc See external documentation. +getRowCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_GetRowCount, + <>). + +%% @spec (This::wxRadioBox(), N::integer()) -> bool() +%% @doc See external documentation. +isItemEnabled(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_IsItemEnabled, + <>). + +%% @spec (This::wxRadioBox(), N::integer()) -> bool() +%% @doc See external documentation. +isItemShown(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxRadioBox), + wxe_util:call(?wxRadioBox_IsItemShown, + <>). + +%% @spec (This::wxRadioBox(), N::integer(), HelpText::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRadioBox(), Item::integer(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxRadioButton. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxRadioButton()) -> bool() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRadioButton), + wxe_util:call(?wxRadioButton_GetValue, + <>). + +%% @spec (This::wxRadioButton(), Val::bool()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},Val) + when is_boolean(Val) -> + ?CLASS(ThisT,wxRadioButton), + wxe_util:cast(?wxRadioButton_SetValue, + <>). + +%% @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: wxRegion. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxRegion_new_0, + <<>>). + +%% @spec (X::term()) -> wxRegion() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% new(Bmp::wxBitmap:wxBitmap()) -> wxRegion() +%%

+%%

+%% new(Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> wxRegion() +%%

+new(#wx_ref{type=BmpT,ref=BmpRef}) -> + ?CLASS(BmpT,wxBitmap), + wxe_util:construct(?wxRegion_new_1_0, + <>); +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, + <>). + +%% @spec (TopLeft::{X::integer(),Y::integer()}, BottomRight::{X::integer(),Y::integer()}) -> wxRegion() +%% @doc See external documentation. +new({TopLeftX,TopLeftY},{BottomRightX,BottomRightY}) + when is_integer(TopLeftX),is_integer(TopLeftY),is_integer(BottomRightX),is_integer(BottomRightY) -> + wxe_util:construct(?wxRegion_new_2, + <>). + +%% @spec (X::integer(), Y::integer(), W::integer(), H::integer()) -> wxRegion() +%% @doc See external documentation. +new(X,Y,W,H) + when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) -> + wxe_util:construct(?wxRegion_new_4, + <>). + +%% @spec (This::wxRegion()) -> ok +%% @doc See external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRegion), + wxe_util:cast(?wxRegion_Clear, + <>). + +%% @spec (This::wxRegion(),X::term()) -> WxRegionContain +%% @doc See external documentation. +%%
Alternatives: +%%

+%% contains(This::wxRegion(), Pt::{X::integer(),Y::integer()}) -> WxRegionContain +%%
WxRegionContain = integer() +%%
WxRegionContain is one of ?wxOutRegion | ?wxPartRegion | ?wxInRegion +%%

+%%

+%% contains(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> WxRegionContain +%%
WxRegionContain = integer() +%%
WxRegionContain is one of ?wxOutRegion | ?wxPartRegion | ?wxInRegion +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer()) -> WxRegionContain +%% WxRegionContain = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> WxRegionContain +%% WxRegionContain = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxRegion()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +convertToBitmap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRegion), + wxe_util:call(?wxRegion_ConvertToBitmap, + <>). + +%% @spec (This::wxRegion()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getBox(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRegion), + wxe_util:call(?wxRegion_GetBox, + <>). + +%% @spec (This::wxRegion(),X::wxRegion()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% intersect(This::wxRegion(), Region::wxRegion()) -> bool() +%%

+%%

+%% intersect(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRegion()) -> bool() +%% @doc See external documentation. +isEmpty(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxRegion), + wxe_util:call(?wxRegion_IsEmpty, + <>). + +%% @spec (This::wxRegion(),X::wxRegion()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% subtract(This::wxRegion(), Region::wxRegion()) -> bool() +%%

+%%

+%% subtract(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRegion(), Pt::{X::integer(),Y::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRegion(),X::term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% union(This::wxRegion(), Region::wxRegion() | wxBitmap:wxBitmap()) -> bool() +%%

+%%

+%% union(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxRegion(),X::wxRegion()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% 'Xor'(This::wxRegion(), Region::wxRegion()) -> bool() +%%

+%%

+%% 'Xor'(This::wxRegion(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() +%%

+'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, + <>); +'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, + <>). + +%% @spec (This::wxRegion(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool() +%% @doc See external documentation. +'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, + <>). + +%% @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: wxSashEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
sash_dragged
+%% See also the message variant {@link wxEvtHandler:wxSash(). #wxSash{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxSashEvent()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getDragRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSashEvent), + wxe_util:call(?wxSashEvent_GetDragRect, + <>). + +%% @spec (This::wxSashEvent()) -> WxSashDragStatus +%% WxSashDragStatus = integer() +%% @doc See external documentation. +%%
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, + <>). + + %% 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: wxSashLayoutWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxSashWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSashLayoutWindow()) -> WxLayoutAlignment +%% WxLayoutAlignment = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxSashLayoutWindow()) -> WxLayoutOrientation +%% WxLayoutOrientation = integer() +%% @doc See external documentation. +%%
WxLayoutOrientation is one of ?wxLAYOUT_HORIZONTAL | ?wxLAYOUT_VERTICAL +getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSashLayoutWindow), + wxe_util:call(?wxSashLayoutWindow_GetOrientation, + <>). + +%% @spec (This::wxSashLayoutWindow(), Align::WxLayoutAlignment) -> ok +%% WxLayoutAlignment = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxSashLayoutWindow(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setDefaultSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxSashLayoutWindow), + wxe_util:cast(?wxSashLayoutWindow_SetDefaultSize, + <>). + +%% @spec (This::wxSashLayoutWindow(), Orient::WxLayoutOrientation) -> ok +%% WxLayoutOrientation = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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: wxSashWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxSashWindow(), Edge::WxSashEdgePosition) -> bool() +%% WxSashEdgePosition = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxSashWindow()) -> integer() +%% @doc See external documentation. +getMaximumSizeX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:call(?wxSashWindow_GetMaximumSizeX, + <>). + +%% @spec (This::wxSashWindow()) -> integer() +%% @doc See external documentation. +getMaximumSizeY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:call(?wxSashWindow_GetMaximumSizeY, + <>). + +%% @spec (This::wxSashWindow()) -> integer() +%% @doc See external documentation. +getMinimumSizeX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:call(?wxSashWindow_GetMinimumSizeX, + <>). + +%% @spec (This::wxSashWindow()) -> integer() +%% @doc See external documentation. +getMinimumSizeY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:call(?wxSashWindow_GetMinimumSizeY, + <>). + +%% @spec (This::wxSashWindow(), Max::integer()) -> ok +%% @doc See external documentation. +setMaximumSizeX(#wx_ref{type=ThisT,ref=ThisRef},Max) + when is_integer(Max) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:cast(?wxSashWindow_SetMaximumSizeX, + <>). + +%% @spec (This::wxSashWindow(), Max::integer()) -> ok +%% @doc See external documentation. +setMaximumSizeY(#wx_ref{type=ThisT,ref=ThisRef},Max) + when is_integer(Max) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:cast(?wxSashWindow_SetMaximumSizeY, + <>). + +%% @spec (This::wxSashWindow(), Min::integer()) -> ok +%% @doc See external documentation. +setMinimumSizeX(#wx_ref{type=ThisT,ref=ThisRef},Min) + when is_integer(Min) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:cast(?wxSashWindow_SetMinimumSizeX, + <>). + +%% @spec (This::wxSashWindow(), Min::integer()) -> ok +%% @doc See external documentation. +setMinimumSizeY(#wx_ref{type=ThisT,ref=ThisRef},Min) + when is_integer(Min) -> + ?CLASS(ThisT,wxSashWindow), + wxe_util:cast(?wxSashWindow_SetMinimumSizeY, + <>). + +%% @spec (This::wxSashWindow(), Edge::WxSashEdgePosition, Sash::bool()) -> ok +%% WxSashEdgePosition = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @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: wxScreenDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxDC} +%%

+%% @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 external documentation. +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: wxScrollBar. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxScrollBar()) -> integer() +%% @doc See external documentation. +getRange(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollBar), + wxe_util:call(?wxScrollBar_GetRange, + <>). + +%% @spec (This::wxScrollBar()) -> integer() +%% @doc See external documentation. +getPageSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollBar), + wxe_util:call(?wxScrollBar_GetPageSize, + <>). + +%% @spec (This::wxScrollBar()) -> integer() +%% @doc See external documentation. +getThumbPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollBar), + wxe_util:call(?wxScrollBar_GetThumbPosition, + <>). + +%% @spec (This::wxScrollBar()) -> integer() +%% @doc See external documentation. +getThumbSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollBar), + wxe_util:call(?wxScrollBar_GetThumbSize, + <>). + +%% @spec (This::wxScrollBar(), ViewStart::integer()) -> ok +%% @doc See external documentation. +setThumbPosition(#wx_ref{type=ThisT,ref=ThisRef},ViewStart) + when is_integer(ViewStart) -> + ?CLASS(ThisT,wxScrollBar), + wxe_util:cast(?wxScrollBar_SetThumbPosition, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxScrollEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
scroll_top, scroll_bottom, scroll_lineup, scroll_linedown, scroll_pageup, scroll_pagedown, scroll_thumbtrack, scroll_thumbrelease, scroll_changed
+%% See also the message variant {@link wxEvtHandler:wxScroll(). #wxScroll{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollEvent), + wxe_util:call(?wxScrollEvent_GetOrientation, + <>). + +%% @spec (This::wxScrollEvent()) -> integer() +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollEvent), + wxe_util:call(?wxScrollEvent_GetPosition, + <>). + + %% 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: wxScrollWinEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
scrollwin_top, scrollwin_bottom, scrollwin_lineup, scrollwin_linedown, scrollwin_pageup, scrollwin_pagedown, scrollwin_thumbtrack, scrollwin_thumbrelease
+%% See also the message variant {@link wxEvtHandler:wxScrollWin(). #wxScrollWin{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getOrientation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollWinEvent), + wxe_util:call(?wxScrollWinEvent_GetOrientation, + <>). + +%% @spec (This::wxScrollWinEvent()) -> integer() +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrollWinEvent), + wxe_util:call(?wxScrollWinEvent_GetPosition, + <>). + + %% 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: wxScrolledWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxPanel} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow(), X::integer(), Y::integer()) -> {Xx::integer(),Yy::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow(), X::integer(), Y::integer()) -> {Xx::integer(),Yy::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow(), X_scrolling::bool(), Y_scrolling::bool()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow()) -> {PixelsPerUnitX::integer(),PixelsPerUnitY::integer()} +%% @doc See external documentation. +getScrollPixelsPerUnit(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrolledWindow), + wxe_util:call(?wxScrolledWindow_GetScrollPixelsPerUnit, + <>). + +%% @spec (This::wxScrolledWindow()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getViewStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxScrolledWindow), + wxe_util:call(?wxScrolledWindow_GetViewStart, + <>). + +%% @spec (This::wxScrolledWindow(), Dc::wxDC:wxDC()) -> ok +%% @doc See external documentation. +doPrepareDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) -> + ?CLASS(ThisT,wxScrolledWindow), + ?CLASS(DcT,wxDC), + wxe_util:cast(?wxScrolledWindow_DoPrepareDC, + <>). + +%% @spec (This::wxScrolledWindow(), Dc::wxDC:wxDC()) -> ok +%% @doc See external documentation. +prepareDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DcT,ref=DcRef}) -> + ?CLASS(ThisT,wxScrolledWindow), + ?CLASS(DcT,wxDC), + wxe_util:cast(?wxScrolledWindow_PrepareDC, + <>). + +%% @spec (This::wxScrolledWindow(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +scroll(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxScrolledWindow), + wxe_util:cast(?wxScrolledWindow_Scroll, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxScrolledWindow(), Xstep::integer(), Ystep::integer()) -> ok +%% @doc See external documentation. +setScrollRate(#wx_ref{type=ThisT,ref=ThisRef},Xstep,Ystep) + when is_integer(Xstep),is_integer(Ystep) -> + ?CLASS(ThisT,wxScrolledWindow), + wxe_util:cast(?wxScrolledWindow_SetScrollRate, + <>). + +%% @spec (This::wxScrolledWindow(), Target::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +setTargetWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TargetT,ref=TargetRef}) -> + ?CLASS(ThisT,wxScrolledWindow), + ?CLASS(TargetT,wxWindow), + wxe_util:cast(?wxScrolledWindow_SetTargetWindow, + <>). + +%% @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: wxSetCursorEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
set_cursor
+%% See also the message variant {@link wxEvtHandler:wxSetCursor(). #wxSetCursor{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getCursor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSetCursorEvent), + wxe_util:call(?wxSetCursorEvent_GetCursor, + <>). + +%% @spec (This::wxSetCursorEvent()) -> integer() +%% @doc See external documentation. +getX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSetCursorEvent), + wxe_util:call(?wxSetCursorEvent_GetX, + <>). + +%% @spec (This::wxSetCursorEvent()) -> integer() +%% @doc See external documentation. +getY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSetCursorEvent), + wxe_util:call(?wxSetCursorEvent_GetY, + <>). + +%% @spec (This::wxSetCursorEvent()) -> bool() +%% @doc See external documentation. +hasCursor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSetCursorEvent), + wxe_util:call(?wxSetCursorEvent_HasCursor, + <>). + +%% @spec (This::wxSetCursorEvent(), Cursor::wxCursor:wxCursor()) -> ok +%% @doc See external documentation. +setCursor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CursorT,ref=CursorRef}) -> + ?CLASS(ThisT,wxSetCursorEvent), + ?CLASS(CursorT,wxCursor), + wxe_util:cast(?wxSetCursorEvent_SetCursor, + <>). + + %% 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: wxShowEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
show
+%% See also the message variant {@link wxEvtHandler:wxShow(). #wxShow{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +setShow(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxShowEvent), + wxe_util:cast(?wxShowEvent_SetShow, + <>). + +%% @spec (This::wxShowEvent()) -> bool() +%% @doc See external documentation. +getShow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxShowEvent), + wxe_util:call(?wxShowEvent_GetShow, + <>). + + %% 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: wxSingleChoiceDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>|| 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 external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSingleChoiceDialog), + wxe_util:call(?wxSingleChoiceDialog_GetSelection, + <>). + +%% @spec (This::wxSingleChoiceDialog()) -> string() +%% @doc See external documentation. +getStringSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSingleChoiceDialog), + wxe_util:call(?wxSingleChoiceDialog_GetStringSelection, + <>). + +%% @spec (This::wxSingleChoiceDialog(), Sel::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},Sel) + when is_integer(Sel) -> + ?CLASS(ThisT,wxSingleChoiceDialog), + wxe_util:cast(?wxSingleChoiceDialog_SetSelection, + <>). + +%% @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: wxSizeEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
size
+%% See also the message variant {@link wxEvtHandler:wxSize(). #wxSize{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizeEvent), + wxe_util:call(?wxSizeEvent_GetSize, + <>). + + %% 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: wxSizer. +%% @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 external documentation. +%%
Alternatives: +%%

+%% add(This::wxSizer(), Width::integer(), Height::integer()) -> add(This,Width,Height, [])

+%%

+%% add(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() +%%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%%

+%%

+%% add(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() +%%

+ +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, + <>); +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, + <>). + +%% @spec (This::wxSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() +%% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(), Size::integer()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +addSpacer(#wx_ref{type=ThisT,ref=ThisRef},Size) + when is_integer(Size) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_AddSpacer, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSizer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +calcMin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_CalcMin, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSizer(),X::integer()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% detach(This::wxSizer(), Index::integer()) -> bool() +%%

+%%

+%% detach(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> bool() +%%

+detach(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_Detach_1_0, + <>); +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, + <>). + +%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +fit(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxSizer), + ?CLASS(WindowT,wxWindow), + wxe_util:call(?wxSizer_Fit, + <>). + +%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +fitInside(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxSizer), + ?CLASS(WindowT,wxWindow), + wxe_util:cast(?wxSizer_FitInside, + <>). + +%% @spec (This::wxSizer()) -> [wxSizerItem:wxSizerItem()] +%% @doc See external documentation. +getChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_GetChildren, + <>). + +%% @spec (This::wxSizer(),X::term()|integer()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% getItem(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> getItem(This,Window, [])

+%%

+%% getItem(This::wxSizer(), Index::integer()) -> wxSizerItem:wxSizerItem() +%%

+ +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, + <>). + +%% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() +%% Option = {recursive, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_GetSize, + <>). + +%% @spec (This::wxSizer()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_GetPosition, + <>). + +%% @spec (This::wxSizer()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_GetMinSize, + <>). + +%% @spec (This::wxSizer(),X::term()|integer()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% hide(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> hide(This,Window, [])

+%%

+%% hide(This::wxSizer(), Index::integer()) -> bool() +%%

+ +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, + <>). + +%% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() +%% Option = {recursive, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(),Index::integer(),X::term()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer()) -> insert(This,Index,Window, [])

+%%

+%% insert(This::wxSizer(), Index::integer(), Item::wxSizerItem:wxSizerItem()) -> wxSizerItem:wxSizerItem() +%%

+ +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, + <>). + +%% @spec (This::wxSizer(),Index::integer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% insert(This::wxSizer(), Index::integer(), Width::integer(), Height::integer()) -> insert(This,Index,Width,Height, [])

+%%

+%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() +%%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%%

+%%

+%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() +%%

+ +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, + <>); +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, + <>). + +%% @spec (This::wxSizer(), Index::integer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() +%% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(), Index::integer(), Size::integer()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +insertSpacer(#wx_ref{type=ThisT,ref=ThisRef},Index,Size) + when is_integer(Index),is_integer(Size) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_InsertSpacer, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSizer(),X::integer()|term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% isShown(This::wxSizer(), Index::integer()) -> bool() +%%

+%%

+%% isShown(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> bool() +%%

+isShown(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_IsShown_1_0, + <>); +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, + <>). + +%% @spec (This::wxSizer()) -> ok +%% @doc See external documentation. +layout(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:cast(?wxSizer_Layout, + <>). + +%% @spec (This::wxSizer(),X::term()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> prepend(This,Window, [])

+%%

+%% prepend(This::wxSizer(), Item::wxSizerItem:wxSizerItem()) -> wxSizerItem:wxSizerItem() +%%

+ +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, + <>). + +%% @spec (This::wxSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% prepend(This::wxSizer(), Width::integer(), Height::integer()) -> prepend(This,Width,Height, [])

+%%

+%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() +%%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%%

+%%

+%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() +%%

+ +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, + <>); +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, + <>). + +%% @spec (This::wxSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() +%% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(), Size::integer()) -> wxSizerItem:wxSizerItem() +%% @doc See external documentation. +prependSpacer(#wx_ref{type=ThisT,ref=ThisRef},Size) + when is_integer(Size) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_PrependSpacer, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSizer()) -> ok +%% @doc See external documentation. +recalcSizes(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizer), + wxe_util:cast(?wxSizer_RecalcSizes, + <>). + +%% @spec (This::wxSizer(),X::integer()|wxSizer()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% remove(This::wxSizer(), Index::integer()) -> bool() +%%

+%%

+%% remove(This::wxSizer(), Sizer::wxSizer()) -> bool() +%%

+remove(#wx_ref{type=ThisT,ref=ThisRef},Index) + when is_integer(Index) -> + ?CLASS(ThisT,wxSizer), + wxe_util:call(?wxSizer_Remove_1_0, + <>); +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, + <>). + +%% @spec (This::wxSizer(),X::term()|integer(),X::term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% replace(This::wxSizer(), Oldwin::wxWindow:wxWindow() | wxSizer(), Newwin::wxWindow:wxWindow() | wxSizer()) -> replace(This,Oldwin,Newwin, [])

+%%

+%% replace(This::wxSizer(), Index::integer(), Newitem::wxSizerItem:wxSizerItem()) -> bool() +%%

+ +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, + <>). + +%% @spec (This::wxSizer(), Oldwin::wxWindow:wxWindow() | wxSizer(), Newwin::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() +%% Option = {recursive, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(), X::integer(), Y::integer(), Width::integer(), Height::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(), Width::integer(), Height::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizer(),X::integer()|term(),Size::{W::integer(),H::integer()}) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setItemMinSize(This::wxSizer(), Index::integer(), Size::{W::integer(),H::integer()}) -> bool() +%%

+%%

+%% setItemMinSize(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Size::{W::integer(),H::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxSizer(),X::integer()|term(),Width::integer(),Height::integer()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setItemMinSize(This::wxSizer(), Index::integer(), Width::integer(), Height::integer()) -> bool() +%%

+%%

+%% setItemMinSize(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Width::integer(), Height::integer()) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxSizer), + ?CLASS(WindowT,wxWindow), + wxe_util:cast(?wxSizer_SetSizeHints, + <>). + +%% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxSizer), + ?CLASS(WindowT,wxWindow), + wxe_util:cast(?wxSizer_SetVirtualSizeHints, + <>). + +%% @spec (This::wxSizer(),X::integer()|term()|bool()) -> bool()|bool()|ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% show(This::wxSizer(), Index::integer()) -> show(This,Index, [])

+%%

+%% show(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> show(This,Window, [])

+%%

+%% show(This::wxSizer(), Show::bool()) -> ok +%%

+ +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, + <>). + +%% @spec (This::wxSizer(),X::integer()|term(),[Option]) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% show(This::wxSizer(), Index::integer(), [Option]) -> bool() +%%
Option = {show, bool()} +%%

+%%

+%% show(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() +%%
Option = {show, bool()} | {recursive, bool()} +%%

+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, + <>); +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, + <>). + 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: wxSizerFlags. +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSizerFlags(), Alignment::integer()) -> wxSizerFlags() +%% @doc See external documentation. +align(#wx_ref{type=ThisT,ref=ThisRef},Alignment) + when is_integer(Alignment) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Align, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSizerFlags(), Direction::integer(), BorderInPixels::integer()) -> wxSizerFlags() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +center(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Center, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +centre(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Centre, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +expand(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Expand, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +left(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Left, + <>). + +%% @spec (This::wxSizerFlags(), Proportion::integer()) -> wxSizerFlags() +%% @doc See external documentation. +proportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion) + when is_integer(Proportion) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Proportion, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +right(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Right, + <>). + +%% @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: wxSizerItem. +%% @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 external documentation. +new() -> + wxe_util:construct(?wxSizerItem_new_0, + <<>>). + +%% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem() +%% @doc See external documentation. +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, + <>). + +%% @spec (Width::integer(), Height::integer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem() +%% @doc See external documentation. +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, + <>). + +%% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem() +%% @doc See external documentation. +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, + <>). + +%% @spec (Width::integer(), Height::integer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +calcMin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_CalcMin, + <>). + +%% @spec (This::wxSizerItem()) -> ok +%% @doc See external documentation. +deleteWindows(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_DeleteWindows, + <>). + +%% @spec (This::wxSizerItem()) -> ok +%% @doc See external documentation. +detachSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_DetachSizer, + <>). + +%% @spec (This::wxSizerItem()) -> integer() +%% @doc See external documentation. +getBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetBorder, + <>). + +%% @spec (This::wxSizerItem()) -> integer() +%% @doc See external documentation. +getFlag(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetFlag, + <>). + +%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetMinSize, + <>). + +%% @spec (This::wxSizerItem()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetPosition, + <>). + +%% @spec (This::wxSizerItem()) -> integer() +%% @doc See external documentation. +getProportion(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetProportion, + <>). + +%% @spec (This::wxSizerItem()) -> float() +%% @doc See external documentation. +getRatio(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetRatio, + <>). + +%% @spec (This::wxSizerItem()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetRect, + <>). + +%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetSize, + <>). + +%% @spec (This::wxSizerItem()) -> wxSizer:wxSizer() +%% @doc See external documentation. +getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetSizer, + <>). + +%% @spec (This::wxSizerItem()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSpacer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetSpacer, + <>). + +%% @spec (This::wxSizerItem()) -> wx:wx() +%% @doc See external documentation. +getUserData(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetUserData, + <>). + +%% @spec (This::wxSizerItem()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_GetWindow, + <>). + +%% @spec (This::wxSizerItem()) -> bool() +%% @doc See external documentation. +isSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_IsSizer, + <>). + +%% @spec (This::wxSizerItem()) -> bool() +%% @doc See external documentation. +isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_IsShown, + <>). + +%% @spec (This::wxSizerItem()) -> bool() +%% @doc See external documentation. +isSpacer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_IsSpacer, + <>). + +%% @spec (This::wxSizerItem()) -> bool() +%% @doc See external documentation. +isWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:call(?wxSizerItem_IsWindow, + <>). + +%% @spec (This::wxSizerItem(), Border::integer()) -> ok +%% @doc See external documentation. +setBorder(#wx_ref{type=ThisT,ref=ThisRef},Border) + when is_integer(Border) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_SetBorder, + <>). + +%% @spec (This::wxSizerItem(), Pos::{X::integer(),Y::integer()}, Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem(), Flag::integer()) -> ok +%% @doc See external documentation. +setFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag) + when is_integer(Flag) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_SetFlag, + <>). + +%% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +setInitSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_SetInitSize, + <>). + +%% @spec (This::wxSizerItem(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem(), Proportion::integer()) -> ok +%% @doc See external documentation. +setProportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion) + when is_integer(Proportion) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_SetProportion, + <>). + +%% @spec (This::wxSizerItem(),X::float()|term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setRatio(This::wxSizerItem(), Ratio::float()) -> ok +%%

+%%

+%% setRatio(This::wxSizerItem(), Size::{W::integer(),H::integer()}) -> ok +%%

+setRatio(#wx_ref{type=ThisT,ref=ThisRef},Ratio) + when is_float(Ratio) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_SetRatio_1_0, + <>); +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, + <>). + +%% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem(), Sizer::wxSizer:wxSizer()) -> ok +%% @doc See external documentation. +setSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> + ?CLASS(ThisT,wxSizerItem), + ?CLASS(SizerT,wxSizer), + wxe_util:cast(?wxSizerItem_SetSizer, + <>). + +%% @spec (This::wxSizerItem(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSizerItem(), Window::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +setWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxSizerItem), + ?CLASS(WindowT,wxWindow), + wxe_util:cast(?wxSizerItem_SetWindow, + <>). + +%% @spec (This::wxSizerItem(), Show::bool()) -> ok +%% @doc See external documentation. +show(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxSizerItem), + wxe_util:cast(?wxSizerItem_Show, + <>). + +%% @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: wxSlider. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSlider()) -> integer() +%% @doc See external documentation. +getLineSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSlider), + wxe_util:call(?wxSlider_GetLineSize, + <>). + +%% @spec (This::wxSlider()) -> integer() +%% @doc See external documentation. +getMax(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSlider), + wxe_util:call(?wxSlider_GetMax, + <>). + +%% @spec (This::wxSlider()) -> integer() +%% @doc See external documentation. +getMin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSlider), + wxe_util:call(?wxSlider_GetMin, + <>). + +%% @spec (This::wxSlider()) -> integer() +%% @doc See external documentation. +getPageSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSlider), + wxe_util:call(?wxSlider_GetPageSize, + <>). + +%% @spec (This::wxSlider()) -> integer() +%% @doc See external documentation. +getThumbLength(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSlider), + wxe_util:call(?wxSlider_GetThumbLength, + <>). + +%% @spec (This::wxSlider()) -> integer() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSlider), + wxe_util:call(?wxSlider_GetValue, + <>). + +%% @spec (This::wxSlider(), LineSize::integer()) -> ok +%% @doc See external documentation. +setLineSize(#wx_ref{type=ThisT,ref=ThisRef},LineSize) + when is_integer(LineSize) -> + ?CLASS(ThisT,wxSlider), + wxe_util:cast(?wxSlider_SetLineSize, + <>). + +%% @spec (This::wxSlider(), PageSize::integer()) -> ok +%% @doc See external documentation. +setPageSize(#wx_ref{type=ThisT,ref=ThisRef},PageSize) + when is_integer(PageSize) -> + ?CLASS(ThisT,wxSlider), + wxe_util:cast(?wxSlider_SetPageSize, + <>). + +%% @spec (This::wxSlider(), MinValue::integer(), MaxValue::integer()) -> ok +%% @doc See external documentation. +setRange(#wx_ref{type=ThisT,ref=ThisRef},MinValue,MaxValue) + when is_integer(MinValue),is_integer(MaxValue) -> + ?CLASS(ThisT,wxSlider), + wxe_util:cast(?wxSlider_SetRange, + <>). + +%% @spec (This::wxSlider(), LenPixels::integer()) -> ok +%% @doc See external documentation. +setThumbLength(#wx_ref{type=ThisT,ref=ThisRef},LenPixels) + when is_integer(LenPixels) -> + ?CLASS(ThisT,wxSlider), + wxe_util:cast(?wxSlider_SetThumbLength, + <>). + +%% @spec (This::wxSlider(), Value::integer()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},Value) + when is_integer(Value) -> + ?CLASS(ThisT,wxSlider), + wxe_util:cast(?wxSlider_SetValue, + <>). + +%% @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: wxSpinButton. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSpinButton()) -> integer() +%% @doc See external documentation. +getMax(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinButton), + wxe_util:call(?wxSpinButton_GetMax, + <>). + +%% @spec (This::wxSpinButton()) -> integer() +%% @doc See external documentation. +getMin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinButton), + wxe_util:call(?wxSpinButton_GetMin, + <>). + +%% @spec (This::wxSpinButton()) -> integer() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinButton), + wxe_util:call(?wxSpinButton_GetValue, + <>). + +%% @spec (This::wxSpinButton(), MinVal::integer(), MaxVal::integer()) -> ok +%% @doc See external documentation. +setRange(#wx_ref{type=ThisT,ref=ThisRef},MinVal,MaxVal) + when is_integer(MinVal),is_integer(MaxVal) -> + ?CLASS(ThisT,wxSpinButton), + wxe_util:cast(?wxSpinButton_SetRange, + <>). + +%% @spec (This::wxSpinButton(), Value::integer()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},Value) + when is_integer(Value) -> + ?CLASS(ThisT,wxSpinButton), + wxe_util:cast(?wxSpinButton_SetValue, + <>). + +%% @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: wxSpinCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSpinCtrl(),X::integer()|string()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setValue(This::wxSpinCtrl(), Value::integer()) -> ok +%%

+%%

+%% setValue(This::wxSpinCtrl(), Text::string()) -> ok +%%

+setValue(#wx_ref{type=ThisT,ref=ThisRef},Value) + when is_integer(Value) -> + ?CLASS(ThisT,wxSpinCtrl), + wxe_util:cast(?wxSpinCtrl_SetValue_1_0, + <>); +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, + <>). + +%% @spec (This::wxSpinCtrl()) -> integer() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinCtrl), + wxe_util:call(?wxSpinCtrl_GetValue, + <>). + +%% @spec (This::wxSpinCtrl(), MinVal::integer(), MaxVal::integer()) -> ok +%% @doc See external documentation. +setRange(#wx_ref{type=ThisT,ref=ThisRef},MinVal,MaxVal) + when is_integer(MinVal),is_integer(MaxVal) -> + ?CLASS(ThisT,wxSpinCtrl), + wxe_util:cast(?wxSpinCtrl_SetRange, + <>). + +%% @spec (This::wxSpinCtrl(), From::integer(), To::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},From,To) + when is_integer(From),is_integer(To) -> + ?CLASS(ThisT,wxSpinCtrl), + wxe_util:cast(?wxSpinCtrl_SetSelection, + <>). + +%% @spec (This::wxSpinCtrl()) -> integer() +%% @doc See external documentation. +getMin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinCtrl), + wxe_util:call(?wxSpinCtrl_GetMin, + <>). + +%% @spec (This::wxSpinCtrl()) -> integer() +%% @doc See external documentation. +getMax(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinCtrl), + wxe_util:call(?wxSpinCtrl_GetMax, + <>). + +%% @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: wxSpinEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_spinctrl_updated, spin_up, spin_down, spin
+%% See also the message variant {@link wxEvtHandler:wxSpin(). #wxSpin{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSpinEvent), + wxe_util:call(?wxSpinEvent_GetPosition, + <>). + +%% @spec (This::wxSpinEvent(), Pos::integer()) -> ok +%% @doc See external documentation. +setPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxSpinEvent), + wxe_util:cast(?wxSpinEvent_SetPosition, + <>). + + %% 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: wxSplashScreen. +%%

This class is derived (and can use functions) from: +%%
{@link wxFrame} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxSplashScreen()) -> integer() +%% @doc See external documentation. +getSplashStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplashScreen), + wxe_util:call(?wxSplashScreen_GetSplashStyle, + <>). + +%% @spec (This::wxSplashScreen()) -> integer() +%% @doc See external documentation. +getTimeout(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplashScreen), + wxe_util:call(?wxSplashScreen_GetTimeout, + <>). + +%% @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: wxSplitterEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_splitter_sash_pos_changed, command_splitter_sash_pos_changing, command_splitter_doubleclicked, command_splitter_unsplit
+%% See also the message variant {@link wxEvtHandler:wxSplitter(). #wxSplitter{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getSashPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterEvent), + wxe_util:call(?wxSplitterEvent_GetSashPosition, + <>). + +%% @spec (This::wxSplitterEvent()) -> integer() +%% @doc See external documentation. +getX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterEvent), + wxe_util:call(?wxSplitterEvent_GetX, + <>). + +%% @spec (This::wxSplitterEvent()) -> integer() +%% @doc See external documentation. +getY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterEvent), + wxe_util:call(?wxSplitterEvent_GetY, + <>). + +%% @spec (This::wxSplitterEvent()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getWindowBeingRemoved(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterEvent), + wxe_util:call(?wxSplitterEvent_GetWindowBeingRemoved, + <>). + +%% @spec (This::wxSplitterEvent(), Pos::integer()) -> ok +%% @doc See external documentation. +setSashPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxSplitterEvent), + wxe_util:cast(?wxSplitterEvent_SetSashPosition, + <>). + + %% 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: wxSplitterWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSplitterWindow()) -> integer() +%% @doc See external documentation. +getMinimumPaneSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_GetMinimumPaneSize, + <>). + +%% @spec (This::wxSplitterWindow()) -> float() +%% @doc See external documentation. +getSashGravity(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_GetSashGravity, + <>). + +%% @spec (This::wxSplitterWindow()) -> integer() +%% @doc See external documentation. +getSashPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_GetSashPosition, + <>). + +%% @spec (This::wxSplitterWindow()) -> WxSplitMode +%% WxSplitMode = integer() +%% @doc See external documentation. +%%
WxSplitMode is one of ?wxSPLIT_HORIZONTAL | ?wxSPLIT_VERTICAL +getSplitMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_GetSplitMode, + <>). + +%% @spec (This::wxSplitterWindow()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getWindow1(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_GetWindow1, + <>). + +%% @spec (This::wxSplitterWindow()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getWindow2(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_GetWindow2, + <>). + +%% @spec (This::wxSplitterWindow(), Window::wxWindow:wxWindow()) -> ok +%% @doc See external documentation. +initialize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + ?CLASS(WindowT,wxWindow), + wxe_util:cast(?wxSplitterWindow_Initialize, + <>). + +%% @spec (This::wxSplitterWindow()) -> bool() +%% @doc See external documentation. +isSplit(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:call(?wxSplitterWindow_IsSplit, + <>). + +%% @spec (This::wxSplitterWindow(), WinOld::wxWindow:wxWindow(), WinNew::wxWindow:wxWindow()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxSplitterWindow(), Gravity::float()) -> ok +%% @doc See external documentation. +setSashGravity(#wx_ref{type=ThisT,ref=ThisRef},Gravity) + when is_float(Gravity) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:cast(?wxSplitterWindow_SetSashGravity, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSplitterWindow(), Width::integer()) -> ok +%% @doc See external documentation. +setSashSize(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:cast(?wxSplitterWindow_SetSashSize, + <>). + +%% @spec (This::wxSplitterWindow(), Min::integer()) -> ok +%% @doc See external documentation. +setMinimumPaneSize(#wx_ref{type=ThisT,ref=ThisRef},Min) + when is_integer(Min) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:cast(?wxSplitterWindow_SetMinimumPaneSize, + <>). + +%% @spec (This::wxSplitterWindow(), Mode::integer()) -> ok +%% @doc See external documentation. +setSplitMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:cast(?wxSplitterWindow_SetSplitMode, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxSplitterWindow()) -> ok +%% @doc See external documentation. +updateSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSplitterWindow), + wxe_util:cast(?wxSplitterWindow_UpdateSize, + <>). + +%% @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: wxStaticBitmap. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStaticBitmap()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +getBitmap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStaticBitmap), + wxe_util:call(?wxStaticBitmap_GetBitmap, + <>). + +%% @spec (This::wxStaticBitmap(), Bitmap::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +setBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) -> + ?CLASS(ThisT,wxStaticBitmap), + ?CLASS(BitmapT,wxBitmap), + wxe_util:cast(?wxStaticBitmap_SetBitmap, + <>). + +%% @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: wxStaticBox. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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: wxStaticBoxSizer. +%%

This class is derived (and can use functions) from: +%%
{@link wxBoxSizer} +%%
{@link wxSizer} +%%

+%% @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 external documentation. +%%
Alternatives: +%%

+%% new(Orient::integer(), Win::wxWindow:wxWindow()) -> new(Orient,Win, [])

+%%

+%% new(Box::wxStaticBox:wxStaticBox(), Orient::integer()) -> wxStaticBoxSizer() +%%

+ +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, + <>). + +%% @spec (Orient::integer(), Win::wxWindow:wxWindow(), [Option]) -> wxStaticBoxSizer() +%% Option = {label, string()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStaticBoxSizer()) -> wxStaticBox:wxStaticBox() +%% @doc See external documentation. +getStaticBox(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStaticBoxSizer), + wxe_util:call(?wxStaticBoxSizer_GetStaticBox, + <>). + +%% @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: wxStaticLine. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStaticLine()) -> bool() +%% @doc See external documentation. +isVertical(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStaticLine), + wxe_util:call(?wxStaticLine_IsVertical, + <>). + +%% @spec () -> integer() +%% @doc See external documentation. +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: wxStaticText. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStaticText()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStaticText), + wxe_util:call(?wxStaticText_GetLabel, + <>). + +%% @spec (This::wxStaticText(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStaticText(), Width::integer()) -> ok +%% @doc See external documentation. +wrap(#wx_ref{type=ThisT,ref=ThisRef},Width) + when is_integer(Width) -> + ?CLASS(ThisT,wxStaticText), + wxe_util:cast(?wxStaticText_Wrap, + <>). + +%% @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: wxStatusBar. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStatusBar(), I::integer(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStatusBar()) -> integer() +%% @doc See external documentation. +getFieldsCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStatusBar), + wxe_util:call(?wxStatusBar_GetFieldsCount, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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 <- 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, + <>). + +%% @spec (This::wxStatusBar(), Height::integer()) -> ok +%% @doc See external documentation. +setMinHeight(#wx_ref{type=ThisT,ref=ThisRef},Height) + when is_integer(Height) -> + ?CLASS(ThisT,wxStatusBar), + wxe_util:cast(?wxStatusBar_SetMinHeight, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStatusBar(), Widths_field::[integer()]) -> ok +%% @doc See external documentation. +setStatusWidths(#wx_ref{type=ThisT,ref=ThisRef},Widths_field) + when is_list(Widths_field) -> + ?CLASS(ThisT,wxStatusBar), + wxe_util:cast(?wxStatusBar_SetStatusWidths, + <> || C <- Widths_field>>)/binary, 0:(((0+length(Widths_field)) rem 2)*32)>>). + +%% @spec (This::wxStatusBar(), Styles::[integer()]) -> ok +%% @doc See external documentation. +setStatusStyles(#wx_ref{type=ThisT,ref=ThisRef},Styles) + when is_list(Styles) -> + ?CLASS(ThisT,wxStatusBar), + wxe_util:cast(?wxStatusBar_SetStatusStyles, + <> || 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: wxStdDialogButtonSizer. +%%

This class is derived (and can use functions) from: +%%
{@link wxBoxSizer} +%%
{@link wxSizer} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxStdDialogButtonSizer_new, + <<>>). + +%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok +%% @doc See external documentation. +addButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) -> + ?CLASS(ThisT,wxStdDialogButtonSizer), + ?CLASS(ButtonT,wxButton), + wxe_util:cast(?wxStdDialogButtonSizer_AddButton, + <>). + +%% @spec (This::wxStdDialogButtonSizer()) -> ok +%% @doc See external documentation. +realize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStdDialogButtonSizer), + wxe_util:cast(?wxStdDialogButtonSizer_Realize, + <>). + +%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok +%% @doc See external documentation. +setAffirmativeButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) -> + ?CLASS(ThisT,wxStdDialogButtonSizer), + ?CLASS(ButtonT,wxButton), + wxe_util:cast(?wxStdDialogButtonSizer_SetAffirmativeButton, + <>). + +%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok +%% @doc See external documentation. +setCancelButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) -> + ?CLASS(ThisT,wxStdDialogButtonSizer), + ?CLASS(ButtonT,wxButton), + wxe_util:cast(?wxStdDialogButtonSizer_SetCancelButton, + <>). + +%% @spec (This::wxStdDialogButtonSizer(), Button::wxButton:wxButton()) -> ok +%% @doc See external documentation. +setNegativeButton(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ButtonT,ref=ButtonRef}) -> + ?CLASS(ThisT,wxStdDialogButtonSizer), + ?CLASS(ButtonT,wxButton), + wxe_util:cast(?wxStdDialogButtonSizer_SetNegativeButton, + <>). + +%% @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: wxStyledTextCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Data::wxMemoryBuffer:wxMemoryBuffer()) -> ok +%% @doc See external documentation. +addStyledText(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + ?CLASS(DataT,wxMemoryBuffer), + wxe_util:cast(?wxStyledTextCtrl_AddStyledText, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +clearAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ClearAll, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +clearDocumentStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ClearDocumentStyle, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getLength(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLength, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +getCharAt(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCharAt, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getCurrentPos(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCurrentPos, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getAnchor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetAnchor, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +getStyleAt(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetStyleAt, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +redo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Redo, + <>). + +%% @spec (This::wxStyledTextCtrl(), CollectUndo::bool()) -> ok +%% @doc See external documentation. +setUndoCollection(#wx_ref{type=ThisT,ref=ThisRef},CollectUndo) + when is_boolean(CollectUndo) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetUndoCollection, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +selectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SelectAll, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +setSavePoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSavePoint, + <>). + +%% @spec (This::wxStyledTextCtrl(), StartPos::integer(), EndPos::integer()) -> wxMemoryBuffer:wxMemoryBuffer() +%% @doc See external documentation. +getStyledText(#wx_ref{type=ThisT,ref=ThisRef},StartPos,EndPos) + when is_integer(StartPos),is_integer(EndPos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetStyledText, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +canRedo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_CanRedo, + <>). + +%% @spec (This::wxStyledTextCtrl(), Handle::integer()) -> integer() +%% @doc See external documentation. +markerLineFromHandle(#wx_ref{type=ThisT,ref=ThisRef},Handle) + when is_integer(Handle) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_MarkerLineFromHandle, + <>). + +%% @spec (This::wxStyledTextCtrl(), Handle::integer()) -> ok +%% @doc See external documentation. +markerDeleteHandle(#wx_ref{type=ThisT,ref=ThisRef},Handle) + when is_integer(Handle) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_MarkerDeleteHandle, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getUndoCollection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetUndoCollection, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getViewWhiteSpace(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetViewWhiteSpace, + <>). + +%% @spec (This::wxStyledTextCtrl(), ViewWS::integer()) -> ok +%% @doc See external documentation. +setViewWhiteSpace(#wx_ref{type=ThisT,ref=ThisRef},ViewWS) + when is_integer(ViewWS) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetViewWhiteSpace, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pt::{X::integer(),Y::integer()}) -> integer() +%% @doc See external documentation. +positionFromPoint(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_PositionFromPoint, + <>). + +%% @spec (This::wxStyledTextCtrl(), X::integer(), Y::integer()) -> integer() +%% @doc See external documentation. +positionFromPointClose(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_PositionFromPointClose, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok +%% @doc See external documentation. +gotoLine(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_GotoLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +gotoPos(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_GotoPos, + <>). + +%% @spec (This::wxStyledTextCtrl(), PosAnchor::integer()) -> ok +%% @doc See external documentation. +setAnchor(#wx_ref{type=ThisT,ref=ThisRef},PosAnchor) + when is_integer(PosAnchor) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetAnchor, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> {string(),LinePos::integer()} +%% @doc See external documentation. +getCurLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCurLine, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getEndStyled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetEndStyled, + <>). + +%% @spec (This::wxStyledTextCtrl(), EolMode::integer()) -> ok +%% @doc See external documentation. +convertEOLs(#wx_ref{type=ThisT,ref=ThisRef},EolMode) + when is_integer(EolMode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ConvertEOLs, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getEOLMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetEOLMode, + <>). + +%% @spec (This::wxStyledTextCtrl(), EolMode::integer()) -> ok +%% @doc See external documentation. +setEOLMode(#wx_ref{type=ThisT,ref=ThisRef},EolMode) + when is_integer(EolMode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetEOLMode, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Mask::integer()) -> ok +%% @doc See external documentation. +startStyling(#wx_ref{type=ThisT,ref=ThisRef},Pos,Mask) + when is_integer(Pos),is_integer(Mask) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StartStyling, + <>). + +%% @spec (This::wxStyledTextCtrl(), Length::integer(), Style::integer()) -> ok +%% @doc See external documentation. +setStyling(#wx_ref{type=ThisT,ref=ThisRef},Length,Style) + when is_integer(Length),is_integer(Style) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetStyling, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getBufferedDraw(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetBufferedDraw, + <>). + +%% @spec (This::wxStyledTextCtrl(), Buffered::bool()) -> ok +%% @doc See external documentation. +setBufferedDraw(#wx_ref{type=ThisT,ref=ThisRef},Buffered) + when is_boolean(Buffered) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetBufferedDraw, + <>). + +%% @spec (This::wxStyledTextCtrl(), TabWidth::integer()) -> ok +%% @doc See external documentation. +setTabWidth(#wx_ref{type=ThisT,ref=ThisRef},TabWidth) + when is_integer(TabWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetTabWidth, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getTabWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTabWidth, + <>). + +%% @spec (This::wxStyledTextCtrl(), CodePage::integer()) -> ok +%% @doc See external documentation. +setCodePage(#wx_ref{type=ThisT,ref=ThisRef},CodePage) + when is_integer(CodePage) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCodePage, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), MarkerNumber::integer()) -> integer() +%% @doc See external documentation. +markerAdd(#wx_ref{type=ThisT,ref=ThisRef},Line,MarkerNumber) + when is_integer(Line),is_integer(MarkerNumber) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_MarkerAdd, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), MarkerNumber::integer()) -> ok +%% @doc See external documentation. +markerDelete(#wx_ref{type=ThisT,ref=ThisRef},Line,MarkerNumber) + when is_integer(Line),is_integer(MarkerNumber) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_MarkerDelete, + <>). + +%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer()) -> ok +%% @doc See external documentation. +markerDeleteAll(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber) + when is_integer(MarkerNumber) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_MarkerDeleteAll, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +markerGet(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_MarkerGet, + <>). + +%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), MarkerMask::integer()) -> integer() +%% @doc See external documentation. +markerNext(#wx_ref{type=ThisT,ref=ThisRef},LineStart,MarkerMask) + when is_integer(LineStart),is_integer(MarkerMask) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_MarkerNext, + <>). + +%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), MarkerMask::integer()) -> integer() +%% @doc See external documentation. +markerPrevious(#wx_ref{type=ThisT,ref=ThisRef},LineStart,MarkerMask) + when is_integer(LineStart),is_integer(MarkerMask) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_MarkerPrevious, + <>). + +%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Bmp::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), Set::integer()) -> ok +%% @doc See external documentation. +markerAddSet(#wx_ref{type=ThisT,ref=ThisRef},Line,Set) + when is_integer(Line),is_integer(Set) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_MarkerAddSet, + <>). + +%% @spec (This::wxStyledTextCtrl(), MarkerNumber::integer(), Alpha::integer()) -> ok +%% @doc See external documentation. +markerSetAlpha(#wx_ref{type=ThisT,ref=ThisRef},MarkerNumber,Alpha) + when is_integer(MarkerNumber),is_integer(Alpha) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_MarkerSetAlpha, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer(), MarginType::integer()) -> ok +%% @doc See external documentation. +setMarginType(#wx_ref{type=ThisT,ref=ThisRef},Margin,MarginType) + when is_integer(Margin),is_integer(MarginType) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMarginType, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> integer() +%% @doc See external documentation. +getMarginType(#wx_ref{type=ThisT,ref=ThisRef},Margin) + when is_integer(Margin) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMarginType, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer(), PixelWidth::integer()) -> ok +%% @doc See external documentation. +setMarginWidth(#wx_ref{type=ThisT,ref=ThisRef},Margin,PixelWidth) + when is_integer(Margin),is_integer(PixelWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMarginWidth, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> integer() +%% @doc See external documentation. +getMarginWidth(#wx_ref{type=ThisT,ref=ThisRef},Margin) + when is_integer(Margin) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMarginWidth, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer(), Mask::integer()) -> ok +%% @doc See external documentation. +setMarginMask(#wx_ref{type=ThisT,ref=ThisRef},Margin,Mask) + when is_integer(Margin),is_integer(Mask) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMarginMask, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> integer() +%% @doc See external documentation. +getMarginMask(#wx_ref{type=ThisT,ref=ThisRef},Margin) + when is_integer(Margin) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMarginMask, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer(), Sensitive::bool()) -> ok +%% @doc See external documentation. +setMarginSensitive(#wx_ref{type=ThisT,ref=ThisRef},Margin,Sensitive) + when is_integer(Margin),is_boolean(Sensitive) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMarginSensitive, + <>). + +%% @spec (This::wxStyledTextCtrl(), Margin::integer()) -> bool() +%% @doc See external documentation. +getMarginSensitive(#wx_ref{type=ThisT,ref=ThisRef},Margin) + when is_integer(Margin) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMarginSensitive, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +styleClearAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleClearAll, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Bold::bool()) -> ok +%% @doc See external documentation. +styleSetBold(#wx_ref{type=ThisT,ref=ThisRef},Style,Bold) + when is_integer(Style),is_boolean(Bold) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetBold, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Italic::bool()) -> ok +%% @doc See external documentation. +styleSetItalic(#wx_ref{type=ThisT,ref=ThisRef},Style,Italic) + when is_integer(Style),is_boolean(Italic) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetItalic, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), SizePoints::integer()) -> ok +%% @doc See external documentation. +styleSetSize(#wx_ref{type=ThisT,ref=ThisRef},Style,SizePoints) + when is_integer(Style),is_integer(SizePoints) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetSize, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), FontName::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Filled::bool()) -> ok +%% @doc See external documentation. +styleSetEOLFilled(#wx_ref{type=ThisT,ref=ThisRef},Style,Filled) + when is_integer(Style),is_boolean(Filled) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetEOLFilled, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +styleResetDefault(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleResetDefault, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Underline::bool()) -> ok +%% @doc See external documentation. +styleSetUnderline(#wx_ref{type=ThisT,ref=ThisRef},Style,Underline) + when is_integer(Style),is_boolean(Underline) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetUnderline, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), CaseForce::integer()) -> ok +%% @doc See external documentation. +styleSetCase(#wx_ref{type=ThisT,ref=ThisRef},Style,CaseForce) + when is_integer(Style),is_integer(CaseForce) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetCase, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Hotspot::bool()) -> ok +%% @doc See external documentation. +styleSetHotSpot(#wx_ref{type=ThisT,ref=ThisRef},Style,Hotspot) + when is_integer(Style),is_boolean(Hotspot) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetHotSpot, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getSelAlpha(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelAlpha, + <>). + +%% @spec (This::wxStyledTextCtrl(), Alpha::integer()) -> ok +%% @doc See external documentation. +setSelAlpha(#wx_ref{type=ThisT,ref=ThisRef},Alpha) + when is_integer(Alpha) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSelAlpha, + <>). + +%% @spec (This::wxStyledTextCtrl(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Key::integer(), Modifiers::integer(), Cmd::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Key::integer(), Modifiers::integer()) -> ok +%% @doc See external documentation. +cmdKeyClear(#wx_ref{type=ThisT,ref=ThisRef},Key,Modifiers) + when is_integer(Key),is_integer(Modifiers) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CmdKeyClear, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +cmdKeyClearAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CmdKeyClearAll, + <>). + +%% @spec (This::wxStyledTextCtrl(), Length::integer()) -> integer() +%% @doc See external documentation. +setStyleBytes(#wx_ref{type=ThisT,ref=ThisRef},Length) + when is_integer(Length) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_SetStyleBytes, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Visible::bool()) -> ok +%% @doc See external documentation. +styleSetVisible(#wx_ref{type=ThisT,ref=ThisRef},Style,Visible) + when is_integer(Style),is_boolean(Visible) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetVisible, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getCaretPeriod(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretPeriod, + <>). + +%% @spec (This::wxStyledTextCtrl(), PeriodMilliseconds::integer()) -> ok +%% @doc See external documentation. +setCaretPeriod(#wx_ref{type=ThisT,ref=ThisRef},PeriodMilliseconds) + when is_integer(PeriodMilliseconds) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCaretPeriod, + <>). + +%% @spec (This::wxStyledTextCtrl(), Characters::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +beginUndoAction(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_BeginUndoAction, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +endUndoAction(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_EndUndoAction, + <>). + +%% @spec (This::wxStyledTextCtrl(), Indic::integer(), Style::integer()) -> ok +%% @doc See external documentation. +indicatorSetStyle(#wx_ref{type=ThisT,ref=ThisRef},Indic,Style) + when is_integer(Indic),is_integer(Style) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_IndicatorSetStyle, + <>). + +%% @spec (This::wxStyledTextCtrl(), Indic::integer()) -> integer() +%% @doc See external documentation. +indicatorGetStyle(#wx_ref{type=ThisT,ref=ThisRef},Indic) + when is_integer(Indic) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_IndicatorGetStyle, + <>). + +%% @spec (This::wxStyledTextCtrl(), Indic::integer(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Indic::integer()) -> wx:colour() +%% @doc See external documentation. +indicatorGetForeground(#wx_ref{type=ThisT,ref=ThisRef},Indic) + when is_integer(Indic) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_IndicatorGetForeground, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getStyleBits(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetStyleBits, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), State::integer()) -> ok +%% @doc See external documentation. +setLineState(#wx_ref{type=ThisT,ref=ThisRef},Line,State) + when is_integer(Line),is_integer(State) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetLineState, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +getLineState(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineState, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getMaxLineState(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMaxLineState, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getCaretLineVisible(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretLineVisible, + <>). + +%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok +%% @doc See external documentation. +setCaretLineVisible(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCaretLineVisible, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> wx:colour() +%% @doc See external documentation. +getCaretLineBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretLineBackground, + <>). + +%% @spec (This::wxStyledTextCtrl(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), LenEntered::integer(), ItemList::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +autoCompCancel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompCancel, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +autoCompActive(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompActive, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +autoCompPosStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompPosStart, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +autoCompComplete(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompComplete, + <>). + +%% @spec (This::wxStyledTextCtrl(), CharacterSet::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), SeparatorCharacter::integer()) -> ok +%% @doc See external documentation. +autoCompSetSeparator(#wx_ref{type=ThisT,ref=ThisRef},SeparatorCharacter) + when is_integer(SeparatorCharacter) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetSeparator, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +autoCompGetSeparator(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetSeparator, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Cancel::bool()) -> ok +%% @doc See external documentation. +autoCompSetCancelAtStart(#wx_ref{type=ThisT,ref=ThisRef},Cancel) + when is_boolean(Cancel) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetCancelAtStart, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +autoCompGetCancelAtStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetCancelAtStart, + <>). + +%% @spec (This::wxStyledTextCtrl(), CharacterSet::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), ChooseSingle::bool()) -> ok +%% @doc See external documentation. +autoCompSetChooseSingle(#wx_ref{type=ThisT,ref=ThisRef},ChooseSingle) + when is_boolean(ChooseSingle) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetChooseSingle, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +autoCompGetChooseSingle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetChooseSingle, + <>). + +%% @spec (This::wxStyledTextCtrl(), IgnoreCase::bool()) -> ok +%% @doc See external documentation. +autoCompSetIgnoreCase(#wx_ref{type=ThisT,ref=ThisRef},IgnoreCase) + when is_boolean(IgnoreCase) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetIgnoreCase, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +autoCompGetIgnoreCase(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetIgnoreCase, + <>). + +%% @spec (This::wxStyledTextCtrl(), ListType::integer(), ItemList::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), AutoHide::bool()) -> ok +%% @doc See external documentation. +autoCompSetAutoHide(#wx_ref{type=ThisT,ref=ThisRef},AutoHide) + when is_boolean(AutoHide) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetAutoHide, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +autoCompGetAutoHide(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetAutoHide, + <>). + +%% @spec (This::wxStyledTextCtrl(), DropRestOfWord::bool()) -> ok +%% @doc See external documentation. +autoCompSetDropRestOfWord(#wx_ref{type=ThisT,ref=ThisRef},DropRestOfWord) + when is_boolean(DropRestOfWord) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetDropRestOfWord, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +autoCompGetDropRestOfWord(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetDropRestOfWord, + <>). + +%% @spec (This::wxStyledTextCtrl(), Type::integer(), Bmp::wxBitmap:wxBitmap()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +clearRegisteredImages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ClearRegisteredImages, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +autoCompGetTypeSeparator(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetTypeSeparator, + <>). + +%% @spec (This::wxStyledTextCtrl(), SeparatorCharacter::integer()) -> ok +%% @doc See external documentation. +autoCompSetTypeSeparator(#wx_ref{type=ThisT,ref=ThisRef},SeparatorCharacter) + when is_integer(SeparatorCharacter) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetTypeSeparator, + <>). + +%% @spec (This::wxStyledTextCtrl(), CharacterCount::integer()) -> ok +%% @doc See external documentation. +autoCompSetMaxWidth(#wx_ref{type=ThisT,ref=ThisRef},CharacterCount) + when is_integer(CharacterCount) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetMaxWidth, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +autoCompGetMaxWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetMaxWidth, + <>). + +%% @spec (This::wxStyledTextCtrl(), RowCount::integer()) -> ok +%% @doc See external documentation. +autoCompSetMaxHeight(#wx_ref{type=ThisT,ref=ThisRef},RowCount) + when is_integer(RowCount) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_AutoCompSetMaxHeight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +autoCompGetMaxHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetMaxHeight, + <>). + +%% @spec (This::wxStyledTextCtrl(), IndentSize::integer()) -> ok +%% @doc See external documentation. +setIndent(#wx_ref{type=ThisT,ref=ThisRef},IndentSize) + when is_integer(IndentSize) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetIndent, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getIndent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetIndent, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseTabs::bool()) -> ok +%% @doc See external documentation. +setUseTabs(#wx_ref{type=ThisT,ref=ThisRef},UseTabs) + when is_boolean(UseTabs) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetUseTabs, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getUseTabs(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetUseTabs, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), IndentSize::integer()) -> ok +%% @doc See external documentation. +setLineIndentation(#wx_ref{type=ThisT,ref=ThisRef},Line,IndentSize) + when is_integer(Line),is_integer(IndentSize) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetLineIndentation, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +getLineIndentation(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineIndentation, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +getLineIndentPosition(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineIndentPosition, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +getColumn(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetColumn, + <>). + +%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok +%% @doc See external documentation. +setUseHorizontalScrollBar(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetUseHorizontalScrollBar, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getUseHorizontalScrollBar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetUseHorizontalScrollBar, + <>). + +%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok +%% @doc See external documentation. +setIndentationGuides(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetIndentationGuides, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getIndentationGuides(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetIndentationGuides, + <>). + +%% @spec (This::wxStyledTextCtrl(), Column::integer()) -> ok +%% @doc See external documentation. +setHighlightGuide(#wx_ref{type=ThisT,ref=ThisRef},Column) + when is_integer(Column) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetHighlightGuide, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getHighlightGuide(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetHighlightGuide, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +getLineEndPosition(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineEndPosition, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getCodePage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCodePage, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> wx:colour() +%% @doc See external documentation. +getCaretForeground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretForeground, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetReadOnly, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +setCurrentPos(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCurrentPos, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +setSelectionStart(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSelectionStart, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getSelectionStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelectionStart, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +setSelectionEnd(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSelectionEnd, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getSelectionEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelectionEnd, + <>). + +%% @spec (This::wxStyledTextCtrl(), Magnification::integer()) -> ok +%% @doc See external documentation. +setPrintMagnification(#wx_ref{type=ThisT,ref=ThisRef},Magnification) + when is_integer(Magnification) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetPrintMagnification, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getPrintMagnification(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetPrintMagnification, + <>). + +%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok +%% @doc See external documentation. +setPrintColourMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetPrintColourMode, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getPrintColourMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetPrintColourMode, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getFirstVisibleLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetFirstVisibleLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> string() +%% @doc See external documentation. +getLine(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLine, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getLineCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineCount, + <>). + +%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok +%% @doc See external documentation. +setMarginLeft(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth) + when is_integer(PixelWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMarginLeft, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getMarginLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMarginLeft, + <>). + +%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok +%% @doc See external documentation. +setMarginRight(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth) + when is_integer(PixelWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMarginRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getMarginRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMarginRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getModify(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetModify, + <>). + +%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},Start,End) + when is_integer(Start),is_integer(End) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSelection, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> string() +%% @doc See external documentation. +getSelectedText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelectedText, + <>). + +%% @spec (This::wxStyledTextCtrl(), StartPos::integer(), EndPos::integer()) -> string() +%% @doc See external documentation. +getTextRange(#wx_ref{type=ThisT,ref=ThisRef},StartPos,EndPos) + when is_integer(StartPos),is_integer(EndPos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTextRange, + <>). + +%% @spec (This::wxStyledTextCtrl(), Normal::bool()) -> ok +%% @doc See external documentation. +hideSelection(#wx_ref{type=ThisT,ref=ThisRef},Normal) + when is_boolean(Normal) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HideSelection, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +lineFromPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_LineFromPosition, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +positionFromLine(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_PositionFromLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), Columns::integer(), Lines::integer()) -> ok +%% @doc See external documentation. +lineScroll(#wx_ref{type=ThisT,ref=ThisRef},Columns,Lines) + when is_integer(Columns),is_integer(Lines) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineScroll, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +ensureCaretVisible(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_EnsureCaretVisible, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), ReadOnly::bool()) -> ok +%% @doc See external documentation. +setReadOnly(#wx_ref{type=ThisT,ref=ThisRef},ReadOnly) + when is_boolean(ReadOnly) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetReadOnly, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +canPaste(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_CanPaste, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +canUndo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_CanUndo, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +emptyUndoBuffer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_EmptyUndoBuffer, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +undo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Undo, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +cut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Cut, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +copy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Copy, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +paste(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Paste, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Clear, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetText, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getTextLength(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTextLength, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getOvertype(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetOvertype, + <>). + +%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok +%% @doc See external documentation. +setCaretWidth(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth) + when is_integer(PixelWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCaretWidth, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getCaretWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretWidth, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +setTargetStart(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetTargetStart, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getTargetStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTargetStart, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +setTargetEnd(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetTargetEnd, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getTargetEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTargetEnd, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Flags::integer()) -> ok +%% @doc See external documentation. +setSearchFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSearchFlags, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getSearchFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSearchFlags, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Definition::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +callTipCancel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CallTipCancel, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +callTipActive(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_CallTipActive, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +callTipPosAtStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_CallTipPosAtStart, + <>). + +%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok +%% @doc See external documentation. +callTipSetHighlight(#wx_ref{type=ThisT,ref=ThisRef},Start,End) + when is_integer(Start),is_integer(End) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CallTipSetHighlight, + <>). + +%% @spec (This::wxStyledTextCtrl(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), TabSize::integer()) -> ok +%% @doc See external documentation. +callTipUseStyle(#wx_ref{type=ThisT,ref=ThisRef},TabSize) + when is_integer(TabSize) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CallTipUseStyle, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +visibleFromDocLine(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_VisibleFromDocLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), LineDisplay::integer()) -> integer() +%% @doc See external documentation. +docLineFromVisible(#wx_ref{type=ThisT,ref=ThisRef},LineDisplay) + when is_integer(LineDisplay) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_DocLineFromVisible, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +wrapCount(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_WrapCount, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), Level::integer()) -> ok +%% @doc See external documentation. +setFoldLevel(#wx_ref{type=ThisT,ref=ThisRef},Line,Level) + when is_integer(Line),is_integer(Level) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetFoldLevel, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +getFoldLevel(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetFoldLevel, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), Level::integer()) -> integer() +%% @doc See external documentation. +getLastChild(#wx_ref{type=ThisT,ref=ThisRef},Line,Level) + when is_integer(Line),is_integer(Level) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLastChild, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +getFoldParent(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetFoldParent, + <>). + +%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), LineEnd::integer()) -> ok +%% @doc See external documentation. +showLines(#wx_ref{type=ThisT,ref=ThisRef},LineStart,LineEnd) + when is_integer(LineStart),is_integer(LineEnd) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ShowLines, + <>). + +%% @spec (This::wxStyledTextCtrl(), LineStart::integer(), LineEnd::integer()) -> ok +%% @doc See external documentation. +hideLines(#wx_ref{type=ThisT,ref=ThisRef},LineStart,LineEnd) + when is_integer(LineStart),is_integer(LineEnd) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HideLines, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> bool() +%% @doc See external documentation. +getLineVisible(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineVisible, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), Expanded::bool()) -> ok +%% @doc See external documentation. +setFoldExpanded(#wx_ref{type=ThisT,ref=ThisRef},Line,Expanded) + when is_integer(Line),is_boolean(Expanded) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetFoldExpanded, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> bool() +%% @doc See external documentation. +getFoldExpanded(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetFoldExpanded, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok +%% @doc See external documentation. +toggleFold(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ToggleFold, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok +%% @doc See external documentation. +ensureVisible(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_EnsureVisible, + <>). + +%% @spec (This::wxStyledTextCtrl(), Flags::integer()) -> ok +%% @doc See external documentation. +setFoldFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetFoldFlags, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok +%% @doc See external documentation. +ensureVisibleEnforcePolicy(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_EnsureVisibleEnforcePolicy, + <>). + +%% @spec (This::wxStyledTextCtrl(), TabIndents::bool()) -> ok +%% @doc See external documentation. +setTabIndents(#wx_ref{type=ThisT,ref=ThisRef},TabIndents) + when is_boolean(TabIndents) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetTabIndents, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getTabIndents(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTabIndents, + <>). + +%% @spec (This::wxStyledTextCtrl(), BsUnIndents::bool()) -> ok +%% @doc See external documentation. +setBackSpaceUnIndents(#wx_ref{type=ThisT,ref=ThisRef},BsUnIndents) + when is_boolean(BsUnIndents) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetBackSpaceUnIndents, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getBackSpaceUnIndents(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetBackSpaceUnIndents, + <>). + +%% @spec (This::wxStyledTextCtrl(), PeriodMilliseconds::integer()) -> ok +%% @doc See external documentation. +setMouseDwellTime(#wx_ref{type=ThisT,ref=ThisRef},PeriodMilliseconds) + when is_integer(PeriodMilliseconds) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMouseDwellTime, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getMouseDwellTime(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMouseDwellTime, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer(), OnlyWordCharacters::bool()) -> integer() +%% @doc See external documentation. +wordStartPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos,OnlyWordCharacters) + when is_integer(Pos),is_boolean(OnlyWordCharacters) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_WordStartPosition, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer(), OnlyWordCharacters::bool()) -> integer() +%% @doc See external documentation. +wordEndPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos,OnlyWordCharacters) + when is_integer(Pos),is_boolean(OnlyWordCharacters) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_WordEndPosition, + <>). + +%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok +%% @doc See external documentation. +setWrapMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetWrapMode, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getWrapMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetWrapMode, + <>). + +%% @spec (This::wxStyledTextCtrl(), WrapVisualFlags::integer()) -> ok +%% @doc See external documentation. +setWrapVisualFlags(#wx_ref{type=ThisT,ref=ThisRef},WrapVisualFlags) + when is_integer(WrapVisualFlags) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetWrapVisualFlags, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getWrapVisualFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetWrapVisualFlags, + <>). + +%% @spec (This::wxStyledTextCtrl(), WrapVisualFlagsLocation::integer()) -> ok +%% @doc See external documentation. +setWrapVisualFlagsLocation(#wx_ref{type=ThisT,ref=ThisRef},WrapVisualFlagsLocation) + when is_integer(WrapVisualFlagsLocation) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetWrapVisualFlagsLocation, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getWrapVisualFlagsLocation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetWrapVisualFlagsLocation, + <>). + +%% @spec (This::wxStyledTextCtrl(), Indent::integer()) -> ok +%% @doc See external documentation. +setWrapStartIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent) + when is_integer(Indent) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetWrapStartIndent, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getWrapStartIndent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetWrapStartIndent, + <>). + +%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok +%% @doc See external documentation. +setLayoutCache(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetLayoutCache, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getLayoutCache(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLayoutCache, + <>). + +%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok +%% @doc See external documentation. +setScrollWidth(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth) + when is_integer(PixelWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetScrollWidth, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getScrollWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetScrollWidth, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Text::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getEndAtLastLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetEndAtLastLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +textHeight(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_TextHeight, + <>). + +%% @spec (This::wxStyledTextCtrl(), Show::bool()) -> ok +%% @doc See external documentation. +setUseVerticalScrollBar(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetUseVerticalScrollBar, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getUseVerticalScrollBar(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetUseVerticalScrollBar, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getTwoPhaseDraw(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTwoPhaseDraw, + <>). + +%% @spec (This::wxStyledTextCtrl(), TwoPhase::bool()) -> ok +%% @doc See external documentation. +setTwoPhaseDraw(#wx_ref{type=ThisT,ref=ThisRef},TwoPhase) + when is_boolean(TwoPhase) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetTwoPhaseDraw, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +targetFromSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_TargetFromSelection, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +linesJoin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LinesJoin, + <>). + +%% @spec (This::wxStyledTextCtrl(), PixelWidth::integer()) -> ok +%% @doc See external documentation. +linesSplit(#wx_ref{type=ThisT,ref=ThisRef},PixelWidth) + when is_integer(PixelWidth) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LinesSplit, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineDown, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineDownExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineUp, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineUpExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +charLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CharLeft, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +charLeftExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CharLeftExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +charRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CharRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +charRightExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CharRightExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordLeft, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordLeftExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordLeftExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordRightExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordRightExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +home(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Home, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +homeExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HomeExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEnd, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEndExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +documentStart(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DocumentStart, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +documentStartExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DocumentStartExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +documentEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DocumentEnd, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +documentEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DocumentEndExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +pageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_PageUp, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +pageUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_PageUpExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +pageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_PageDown, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +pageDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_PageDownExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +editToggleOvertype(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_EditToggleOvertype, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +cancel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Cancel, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +deleteBack(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DeleteBack, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +tab(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Tab, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +backTab(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_BackTab, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +newLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_NewLine, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +formFeed(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_FormFeed, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +vCHome(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_VCHome, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +vCHomeExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_VCHomeExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +zoomIn(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ZoomIn, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +zoomOut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ZoomOut, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +delWordLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DelWordLeft, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +delWordRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DelWordRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineCut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineCut, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineDelete(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineDelete, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineTranspose(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineTranspose, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineDuplicate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineDuplicate, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lowerCase(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LowerCase, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +upperCase(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_UpperCase, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineScrollDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineScrollDown, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineScrollUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineScrollUp, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +deleteBackNotLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DeleteBackNotLine, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +homeDisplay(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HomeDisplay, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +homeDisplayExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HomeDisplayExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEndDisplay(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEndDisplay, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEndDisplayExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEndDisplayExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +homeWrapExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HomeWrapExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEndWrap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEndWrap, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEndWrapExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEndWrapExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +vCHomeWrap(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_VCHomeWrap, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +vCHomeWrapExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_VCHomeWrapExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineCopy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineCopy, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +moveCaretInsideView(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_MoveCaretInsideView, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> integer() +%% @doc See external documentation. +lineLength(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_LineLength, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos1::integer(), Pos2::integer()) -> ok +%% @doc See external documentation. +braceHighlight(#wx_ref{type=ThisT,ref=ThisRef},Pos1,Pos2) + when is_integer(Pos1),is_integer(Pos2) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_BraceHighlight, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +braceBadLight(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_BraceBadLight, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +braceMatch(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_BraceMatch, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getViewEOL(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetViewEOL, + <>). + +%% @spec (This::wxStyledTextCtrl(), Visible::bool()) -> ok +%% @doc See external documentation. +setViewEOL(#wx_ref{type=ThisT,ref=ThisRef},Visible) + when is_boolean(Visible) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetViewEOL, + <>). + +%% @spec (This::wxStyledTextCtrl(), Mask::integer()) -> ok +%% @doc See external documentation. +setModEventMask(#wx_ref{type=ThisT,ref=ThisRef},Mask) + when is_integer(Mask) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetModEventMask, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getEdgeColumn(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetEdgeColumn, + <>). + +%% @spec (This::wxStyledTextCtrl(), Column::integer()) -> ok +%% @doc See external documentation. +setEdgeColumn(#wx_ref{type=ThisT,ref=ThisRef},Column) + when is_integer(Column) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetEdgeColumn, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getEdgeMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetEdgeMode, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> wx:colour() +%% @doc See external documentation. +getEdgeColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetEdgeColour, + <>). + +%% @spec (This::wxStyledTextCtrl(), EdgeColour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +searchAnchor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SearchAnchor, + <>). + +%% @spec (This::wxStyledTextCtrl(), Flags::integer(), Text::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Flags::integer(), Text::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +linesOnScreen(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_LinesOnScreen, + <>). + +%% @spec (This::wxStyledTextCtrl(), AllowPopUp::bool()) -> ok +%% @doc See external documentation. +usePopUp(#wx_ref{type=ThisT,ref=ThisRef},AllowPopUp) + when is_boolean(AllowPopUp) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_UsePopUp, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +selectionIsRectangle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_SelectionIsRectangle, + <>). + +%% @spec (This::wxStyledTextCtrl(), Zoom::integer()) -> ok +%% @doc See external documentation. +setZoom(#wx_ref{type=ThisT,ref=ThisRef},Zoom) + when is_integer(Zoom) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetZoom, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getZoom(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetZoom, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getModEventMask(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetModEventMask, + <>). + +%% @spec (This::wxStyledTextCtrl(), Focus::bool()) -> ok +%% @doc See external documentation. +setSTCFocus(#wx_ref{type=ThisT,ref=ThisRef},Focus) + when is_boolean(Focus) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSTCFocus, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getSTCFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSTCFocus, + <>). + +%% @spec (This::wxStyledTextCtrl(), StatusCode::integer()) -> ok +%% @doc See external documentation. +setStatus(#wx_ref{type=ThisT,ref=ThisRef},StatusCode) + when is_integer(StatusCode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetStatus, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getStatus(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetStatus, + <>). + +%% @spec (This::wxStyledTextCtrl(), Captures::bool()) -> ok +%% @doc See external documentation. +setMouseDownCaptures(#wx_ref{type=ThisT,ref=ThisRef},Captures) + when is_boolean(Captures) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMouseDownCaptures, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getMouseDownCaptures(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetMouseDownCaptures, + <>). + +%% @spec (This::wxStyledTextCtrl(), CursorType::integer()) -> ok +%% @doc See external documentation. +setSTCCursor(#wx_ref{type=ThisT,ref=ThisRef},CursorType) + when is_integer(CursorType) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSTCCursor, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getSTCCursor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSTCCursor, + <>). + +%% @spec (This::wxStyledTextCtrl(), Symbol::integer()) -> ok +%% @doc See external documentation. +setControlCharSymbol(#wx_ref{type=ThisT,ref=ThisRef},Symbol) + when is_integer(Symbol) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetControlCharSymbol, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getControlCharSymbol(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetControlCharSymbol, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordPartLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordPartLeft, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordPartLeftExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordPartLeftExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordPartRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordPartRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordPartRightExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordPartRightExtend, + <>). + +%% @spec (This::wxStyledTextCtrl(), VisiblePolicy::integer(), VisibleSlop::integer()) -> ok +%% @doc See external documentation. +setVisiblePolicy(#wx_ref{type=ThisT,ref=ThisRef},VisiblePolicy,VisibleSlop) + when is_integer(VisiblePolicy),is_integer(VisibleSlop) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetVisiblePolicy, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +delLineLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DelLineLeft, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +delLineRight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_DelLineRight, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getXOffset(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetXOffset, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +chooseCaretX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ChooseCaretX, + <>). + +%% @spec (This::wxStyledTextCtrl(), CaretPolicy::integer(), CaretSlop::integer()) -> ok +%% @doc See external documentation. +setXCaretPolicy(#wx_ref{type=ThisT,ref=ThisRef},CaretPolicy,CaretSlop) + when is_integer(CaretPolicy),is_integer(CaretSlop) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetXCaretPolicy, + <>). + +%% @spec (This::wxStyledTextCtrl(), CaretPolicy::integer(), CaretSlop::integer()) -> ok +%% @doc See external documentation. +setYCaretPolicy(#wx_ref{type=ThisT,ref=ThisRef},CaretPolicy,CaretSlop) + when is_integer(CaretPolicy),is_integer(CaretSlop) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetYCaretPolicy, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getPrintWrapMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetPrintWrapMode, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Fore::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseSetting::bool(), Back::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Underline::bool()) -> ok +%% @doc See external documentation. +setHotspotActiveUnderline(#wx_ref{type=ThisT,ref=ThisRef},Underline) + when is_boolean(Underline) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetHotspotActiveUnderline, + <>). + +%% @spec (This::wxStyledTextCtrl(), SingleLine::bool()) -> ok +%% @doc See external documentation. +setHotspotSingleLine(#wx_ref{type=ThisT,ref=ThisRef},SingleLine) + when is_boolean(SingleLine) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetHotspotSingleLine, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +paraDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ParaDownExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +paraUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ParaUp, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +paraUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ParaUpExtend, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +positionBefore(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_PositionBefore, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> integer() +%% @doc See external documentation. +positionAfter(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_PositionAfter, + <>). + +%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok +%% @doc See external documentation. +copyRange(#wx_ref{type=ThisT,ref=ThisRef},Start,End) + when is_integer(Start),is_integer(End) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CopyRange, + <>). + +%% @spec (This::wxStyledTextCtrl(), Length::integer(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Mode::integer()) -> ok +%% @doc See external documentation. +setSelectionMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) + when is_integer(Mode) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetSelectionMode, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getSelectionMode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelectionMode, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineDownRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineDownRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineUpRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineUpRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +charLeftRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CharLeftRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +charRightRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CharRightRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +homeRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_HomeRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +vCHomeRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_VCHomeRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +lineEndRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_LineEndRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +pageUpRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_PageUpRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +pageDownRectExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_PageDownRectExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +stutteredPageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StutteredPageUp, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +stutteredPageUpExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StutteredPageUpExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +stutteredPageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StutteredPageDown, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +stutteredPageDownExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StutteredPageDownExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordLeftEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordLeftEnd, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordLeftEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordLeftEndExtend, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordRightEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordRightEnd, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +wordRightEndExtend(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_WordRightEndExtend, + <>). + +%% @spec (This::wxStyledTextCtrl(), Characters::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +setCharsDefault(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCharsDefault, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +autoCompGetCurrent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_AutoCompGetCurrent, + <>). + +%% @spec (This::wxStyledTextCtrl(), Bytes::integer()) -> ok +%% @doc See external documentation. +allocate(#wx_ref{type=ThisT,ref=ThisRef},Bytes) + when is_integer(Bytes) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Allocate, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer(), Column::integer()) -> integer() +%% @doc See external documentation. +findColumn(#wx_ref{type=ThisT,ref=ThisRef},Line,Column) + when is_integer(Line),is_integer(Column) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_FindColumn, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getCaretSticky(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretSticky, + <>). + +%% @spec (This::wxStyledTextCtrl(), UseCaretStickyBehaviour::bool()) -> ok +%% @doc See external documentation. +setCaretSticky(#wx_ref{type=ThisT,ref=ThisRef},UseCaretStickyBehaviour) + when is_boolean(UseCaretStickyBehaviour) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCaretSticky, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +toggleCaretSticky(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ToggleCaretSticky, + <>). + +%% @spec (This::wxStyledTextCtrl(), Convert::bool()) -> ok +%% @doc See external documentation. +setPasteConvertEndings(#wx_ref{type=ThisT,ref=ThisRef},Convert) + when is_boolean(Convert) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetPasteConvertEndings, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getPasteConvertEndings(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetPasteConvertEndings, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +selectionDuplicate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SelectionDuplicate, + <>). + +%% @spec (This::wxStyledTextCtrl(), Alpha::integer()) -> ok +%% @doc See external documentation. +setCaretLineBackAlpha(#wx_ref{type=ThisT,ref=ThisRef},Alpha) + when is_integer(Alpha) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetCaretLineBackAlpha, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getCaretLineBackAlpha(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCaretLineBackAlpha, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +startRecord(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StartRecord, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> ok +%% @doc See external documentation. +stopRecord(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StopRecord, + <>). + +%% @spec (This::wxStyledTextCtrl(), Lexer::integer()) -> ok +%% @doc See external documentation. +setLexer(#wx_ref{type=ThisT,ref=ThisRef},Lexer) + when is_integer(Lexer) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetLexer, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getLexer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLexer, + <>). + +%% @spec (This::wxStyledTextCtrl(), Start::integer(), End::integer()) -> ok +%% @doc See external documentation. +colourise(#wx_ref{type=ThisT,ref=ThisRef},Start,End) + when is_integer(Start),is_integer(End) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_Colourise, + <>). + +%% @spec (This::wxStyledTextCtrl(), Key::string(), Value::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), KeywordSet::integer(), KeyWords::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Language::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Key::string()) -> string() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getStyleBitsNeeded(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetStyleBitsNeeded, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> integer() +%% @doc See external documentation. +getCurrentLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCurrentLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), StyleNum::integer(), Spec::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), StyleNum::integer(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), CharacterSet::integer()) -> ok +%% @doc See external documentation. +styleSetCharacterSet(#wx_ref{type=ThisT,ref=ThisRef},Style,CharacterSet) + when is_integer(Style),is_integer(CharacterSet) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_StyleSetCharacterSet, + <>). + +%% @spec (This::wxStyledTextCtrl(), Style::integer(), Encoding::WxFontEncoding) -> ok +%% WxFontEncoding = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Cmd::integer()) -> ok +%% @doc See external documentation. +cmdKeyExecute(#wx_ref{type=ThisT,ref=ThisRef},Cmd) + when is_integer(Cmd) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_CmdKeyExecute, + <>). + +%% @spec (This::wxStyledTextCtrl(), Left::integer(), Right::integer()) -> ok +%% @doc See external documentation. +setMargins(#wx_ref{type=ThisT,ref=ThisRef},Left,Right) + when is_integer(Left),is_integer(Right) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetMargins, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> {StartPos::integer(),EndPos::integer()} +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelection, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +pointFromPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_PointFromPosition, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> ok +%% @doc See external documentation. +scrollToLine(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ScrollToLine, + <>). + +%% @spec (This::wxStyledTextCtrl(), Column::integer()) -> ok +%% @doc See external documentation. +scrollToColumn(#wx_ref{type=ThisT,ref=ThisRef},Column) + when is_integer(Column) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_ScrollToColumn, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Bar::wxScrollBar:wxScrollBar()) -> ok +%% @doc See external documentation. +setVScrollBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BarT,ref=BarRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + ?CLASS(BarT,wxScrollBar), + wxe_util:cast(?wxStyledTextCtrl_SetVScrollBar, + <>). + +%% @spec (This::wxStyledTextCtrl(), Bar::wxScrollBar:wxScrollBar()) -> ok +%% @doc See external documentation. +setHScrollBar(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BarT,ref=BarRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + ?CLASS(BarT,wxScrollBar), + wxe_util:cast(?wxStyledTextCtrl_SetHScrollBar, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getLastKeydownProcessed(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLastKeydownProcessed, + <>). + +%% @spec (This::wxStyledTextCtrl(), Val::bool()) -> ok +%% @doc See external documentation. +setLastKeydownProcessed(#wx_ref{type=ThisT,ref=ThisRef},Val) + when is_boolean(Val) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:cast(?wxStyledTextCtrl_SetLastKeydownProcessed, + <>). + +%% @spec (This::wxStyledTextCtrl(), Filename::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Filename::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), X::integer(), Y::integer(), Def::WxDragResult) -> WxDragResult +%% WxDragResult = integer() +%% WxDragResult = integer() +%% @doc See external documentation. +%%
WxDragResult is one of ?wxDragError | ?wxDragNone | ?wxDragCopy | ?wxDragMove | ?wxDragLink | ?wxDragCancel +%%
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, + <>). + +%% @spec (This::wxStyledTextCtrl(), X::integer(), Y::integer(), Data::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> bool() +%% @doc See external documentation. +getUseAntiAliasing(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetUseAntiAliasing, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::binary()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl(), Pos::integer(), Text::binary()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> {binary(),LinePos::integer()} +%% @doc See external documentation. +getCurLineRaw(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetCurLineRaw, + <>). + +%% @spec (This::wxStyledTextCtrl(), Line::integer()) -> binary() +%% @doc See external documentation. +getLineRaw(#wx_ref{type=ThisT,ref=ThisRef},Line) + when is_integer(Line) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetLineRaw, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> binary() +%% @doc See external documentation. +getSelectedTextRaw(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetSelectedTextRaw, + <>). + +%% @spec (This::wxStyledTextCtrl(), StartPos::integer(), EndPos::integer()) -> binary() +%% @doc See external documentation. +getTextRangeRaw(#wx_ref{type=ThisT,ref=ThisRef},StartPos,EndPos) + when is_integer(StartPos),is_integer(EndPos) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTextRangeRaw, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::binary()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxStyledTextCtrl()) -> binary() +%% @doc See external documentation. +getTextRaw(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextCtrl), + wxe_util:call(?wxStyledTextCtrl_GetTextRaw, + <>). + +%% @spec (This::wxStyledTextCtrl(), Text::binary()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxStyledTextEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
stc_change, stc_styleneeded, stc_charadded, stc_savepointreached, stc_savepointleft, stc_romodifyattempt, stc_key, stc_doubleclick, stc_updateui, stc_modified, stc_macrorecord, stc_marginclick, stc_needshown, stc_painted, stc_userlistselection, stc_uridropped, stc_dwellstart, stc_dwellend, stc_start_drag, stc_drag_over, stc_do_drop, stc_zoom, stc_hotspot_click, stc_hotspot_dclick, stc_calltip_click, stc_autocomp_selection
+%% See also the message variant {@link wxEvtHandler:wxStyledText(). #wxStyledText{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetPosition, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getKey(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetKey, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getModifiers(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetModifiers, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getModificationType(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetModificationType, + <>). + +%% @spec (This::wxStyledTextEvent()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetText, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getLength(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetLength, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getLinesAdded(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetLinesAdded, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetLine, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getFoldLevelNow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetFoldLevelNow, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getFoldLevelPrev(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetFoldLevelPrev, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getMargin(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetMargin, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getMessage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetMessage, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getWParam(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetWParam, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getLParam(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetLParam, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getListType(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetListType, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getX(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetX, + <>). + +%% @spec (This::wxStyledTextEvent()) -> integer() +%% @doc See external documentation. +getY(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetY, + <>). + +%% @spec (This::wxStyledTextEvent()) -> string() +%% @doc See external documentation. +getDragText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetDragText, + <>). + +%% @spec (This::wxStyledTextEvent()) -> bool() +%% @doc See external documentation. +getDragAllowMove(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetDragAllowMove, + <>). + +%% @spec (This::wxStyledTextEvent()) -> WxDragResult +%% WxDragResult = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxStyledTextEvent()) -> bool() +%% @doc See external documentation. +getShift(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetShift, + <>). + +%% @spec (This::wxStyledTextEvent()) -> bool() +%% @doc See external documentation. +getControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetControl, + <>). + +%% @spec (This::wxStyledTextEvent()) -> bool() +%% @doc See external documentation. +getAlt(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxStyledTextEvent), + wxe_util:call(?wxStyledTextEvent_GetAlt, + <>). + + %% 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: wxSysColourChangedEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
sys_colour_changed
+%% See also the message variant {@link wxEvtHandler:wxSysColourChanged(). #wxSysColourChanged{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxEvent} +%%

+%% @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: wxTextAttr. +%% @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 external documentation. +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 external documentation. +%%
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 external documentation. +%%
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, + <>). + +%% @spec (This::wxTextAttr()) -> wx:colour() +%% @doc See external documentation. +getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetBackgroundColour, + <>). + +%% @spec (This::wxTextAttr()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetFont, + <>). + +%% @spec (This::wxTextAttr()) -> integer() +%% @doc See external documentation. +getLeftIndent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetLeftIndent, + <>). + +%% @spec (This::wxTextAttr()) -> integer() +%% @doc See external documentation. +getLeftSubIndent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetLeftSubIndent, + <>). + +%% @spec (This::wxTextAttr()) -> integer() +%% @doc See external documentation. +getRightIndent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetRightIndent, + <>). + +%% @spec (This::wxTextAttr()) -> [integer()] +%% @doc See external documentation. +getTabs(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetTabs, + <>). + +%% @spec (This::wxTextAttr()) -> wx:colour() +%% @doc See external documentation. +getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetTextColour, + <>). + +%% @spec (This::wxTextAttr()) -> bool() +%% @doc See external documentation. +hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_HasBackgroundColour, + <>). + +%% @spec (This::wxTextAttr()) -> bool() +%% @doc See external documentation. +hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_HasFont, + <>). + +%% @spec (This::wxTextAttr()) -> bool() +%% @doc See external documentation. +hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_HasTextColour, + <>). + +%% @spec (This::wxTextAttr()) -> integer() +%% @doc See external documentation. +getFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_GetFlags, + <>). + +%% @spec (This::wxTextAttr()) -> bool() +%% @doc See external documentation. +isDefault(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:call(?wxTextAttr_IsDefault, + <>). + +%% @spec (This::wxTextAttr(), Alignment::WxTextAttrAlignment) -> ok +%% WxTextAttrAlignment = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxTextAttr(), ColBack::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTextAttr(), Flags::integer()) -> ok +%% @doc See external documentation. +setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:cast(?wxTextAttr_SetFlags, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTextAttr(), Indent::integer()) -> ok +%% @doc See external documentation. +setRightIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent) + when is_integer(Indent) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:cast(?wxTextAttr_SetRightIndent, + <>). + +%% @spec (This::wxTextAttr(), Tabs::[integer()]) -> ok +%% @doc See external documentation. +setTabs(#wx_ref{type=ThisT,ref=ThisRef},Tabs) + when is_list(Tabs) -> + ?CLASS(ThisT,wxTextAttr), + wxe_util:cast(?wxTextAttr_SetTabs, + <> || C <- Tabs>>)/binary, 0:(((0+length(Tabs)) rem 2)*32)>>). + +%% @spec (This::wxTextAttr(), ColText::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxTextCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +canCopy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_CanCopy, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +canCut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_CanCut, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +canPaste(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_CanPaste, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +canRedo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_CanRedo, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +canUndo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_CanUndo, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +clear(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Clear, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +copy(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Copy, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +cut(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Cut, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +discardEdits(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_DiscardEdits, + <>). + +%% @spec (This::wxTextCtrl(), Event::wxKeyEvent:wxKeyEvent()) -> bool() +%% @doc See external documentation. +emulateKeyPress(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) -> + ?CLASS(ThisT,wxTextCtrl), + ?CLASS(EventT,wxKeyEvent), + wxe_util:call(?wxTextCtrl_EmulateKeyPress, + <>). + +%% @spec (This::wxTextCtrl()) -> wxTextAttr:wxTextAttr() +%% @doc See external documentation. +getDefaultStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetDefaultStyle, + <>). + +%% @spec (This::wxTextCtrl()) -> integer() +%% @doc See external documentation. +getInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetInsertionPoint, + <>). + +%% @spec (This::wxTextCtrl()) -> integer() +%% @doc See external documentation. +getLastPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetLastPosition, + <>). + +%% @spec (This::wxTextCtrl(), LineNo::integer()) -> integer() +%% @doc See external documentation. +getLineLength(#wx_ref{type=ThisT,ref=ThisRef},LineNo) + when is_integer(LineNo) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetLineLength, + <>). + +%% @spec (This::wxTextCtrl(), LineNo::integer()) -> string() +%% @doc See external documentation. +getLineText(#wx_ref{type=ThisT,ref=ThisRef},LineNo) + when is_integer(LineNo) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetLineText, + <>). + +%% @spec (This::wxTextCtrl()) -> integer() +%% @doc See external documentation. +getNumberOfLines(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetNumberOfLines, + <>). + +%% @spec (This::wxTextCtrl(), From::integer(), To::integer()) -> string() +%% @doc See external documentation. +getRange(#wx_ref{type=ThisT,ref=ThisRef},From,To) + when is_integer(From),is_integer(To) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetRange, + <>). + +%% @spec (This::wxTextCtrl()) -> {From::integer(),To::integer()} +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetSelection, + <>). + +%% @spec (This::wxTextCtrl()) -> string() +%% @doc See external documentation. +getStringSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetStringSelection, + <>). + +%% @spec (This::wxTextCtrl(), Position::integer(), Style::wxTextAttr:wxTextAttr()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl()) -> string() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_GetValue, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +isEditable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_IsEditable, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +isModified(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_IsModified, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +isMultiLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_IsMultiLine, + <>). + +%% @spec (This::wxTextCtrl()) -> bool() +%% @doc See external documentation. +isSingleLine(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_IsSingleLine, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +markDirty(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_MarkDirty, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +paste(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Paste, + <>). + +%% @spec (This::wxTextCtrl(), Pos::integer()) -> {bool(),X::integer(),Y::integer()} +%% @doc See external documentation. +positionToXY(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_PositionToXY, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +redo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Redo, + <>). + +%% @spec (This::wxTextCtrl(), From::integer(), To::integer()) -> ok +%% @doc See external documentation. +remove(#wx_ref{type=ThisT,ref=ThisRef},From,To) + when is_integer(From),is_integer(To) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Remove, + <>). + +%% @spec (This::wxTextCtrl(), From::integer(), To::integer(), Value::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl(), Style::wxTextAttr:wxTextAttr()) -> bool() +%% @doc See external documentation. +setDefaultStyle(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=StyleT,ref=StyleRef}) -> + ?CLASS(ThisT,wxTextCtrl), + ?CLASS(StyleT,wxTextAttr), + wxe_util:call(?wxTextCtrl_SetDefaultStyle, + <>). + +%% @spec (This::wxTextCtrl(), Editable::bool()) -> ok +%% @doc See external documentation. +setEditable(#wx_ref{type=ThisT,ref=ThisRef},Editable) + when is_boolean(Editable) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_SetEditable, + <>). + +%% @spec (This::wxTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +setInsertionPoint(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_SetInsertionPoint, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +setInsertionPointEnd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_SetInsertionPointEnd, + <>). + +%% @spec (This::wxTextCtrl(), Len::integer()) -> ok +%% @doc See external documentation. +setMaxLength(#wx_ref{type=ThisT,ref=ThisRef},Len) + when is_integer(Len) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_SetMaxLength, + <>). + +%% @spec (This::wxTextCtrl(), From::integer(), To::integer()) -> ok +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},From,To) + when is_integer(From),is_integer(To) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_SetSelection, + <>). + +%% @spec (This::wxTextCtrl(), Start::integer(), End::integer(), Style::wxTextAttr:wxTextAttr()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl(), Value::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl(), Pos::integer()) -> ok +%% @doc See external documentation. +showPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_ShowPosition, + <>). + +%% @spec (This::wxTextCtrl()) -> ok +%% @doc See external documentation. +undo(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:cast(?wxTextCtrl_Undo, + <>). + +%% @spec (This::wxTextCtrl(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTextCtrl(), X::integer(), Y::integer()) -> integer() +%% @doc See external documentation. +xYToPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxTextCtrl), + wxe_util:call(?wxTextCtrl_XYToPosition, + <>). + +%% @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: wxTextDataObject. +%%

This class is derived (and can use functions) from: +%%
{@link wxDataObject} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTextDataObject()) -> integer() +%% @doc See external documentation. +getTextLength(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextDataObject), + wxe_util:call(?wxTextDataObject_GetTextLength, + <>). + +%% @spec (This::wxTextDataObject()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextDataObject), + wxe_util:call(?wxTextDataObject_GetText, + <>). + +%% @spec (This::wxTextDataObject(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxTextEntryDialog. +%%

This class is derived (and can use functions) from: +%%
{@link wxDialog} +%%
{@link wxTopLevelWindow} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTextEntryDialog()) -> string() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTextEntryDialog), + wxe_util:call(?wxTextEntryDialog_GetValue, + <>). + +%% @spec (This::wxTextEntryDialog(), Val::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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: wxToggleButton. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxToggleButton()) -> bool() +%% @doc See external documentation. +getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToggleButton), + wxe_util:call(?wxToggleButton_GetValue, + <>). + +%% @spec (This::wxToggleButton(), State::bool()) -> ok +%% @doc See external documentation. +setValue(#wx_ref{type=ThisT,ref=ThisRef},State) + when is_boolean(State) -> + ?CLASS(ThisT,wxToggleButton), + wxe_util:cast(?wxToggleButton_SetValue, + <>). + +%% @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: wxToolBar. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +addControl(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ControlT,ref=ControlRef}) -> + ?CLASS(ThisT,wxToolBar), + ?CLASS(ControlT,wxControl), + wxe_util:call(?wxToolBar_AddControl, + <>). + +%% @spec (This::wxToolBar()) -> wx:wx() +%% @doc See external documentation. +addSeparator(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_AddSeparator, + <>). + +%% @spec (This::wxToolBar(), Tool::wx:wx()) -> wx:wx() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap()) -> addTool(This,Toolid,Label,Bitmap, [])

+%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap()) -> addTool(This,Toolid,Bitmap,BmpDisabled, [])

+%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx() +%%
Option = {shortHelpString, string()} | {longHelpString, string()} +%%

+ +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, + <>). + +%% @spec (This::wxToolBar(),Toolid::integer(),X::string()|term(),X::term(),X::term()) -> wx:wx() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap()) -> addTool(This,Toolid,Label,Bitmap,BmpDisabled, [])

+%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx() +%%
Option = {shortHelp, string()} | {kind, WxItemKind} +%%
WxItemKind = integer() +%%
WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX +%%

+%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), [Option]) -> wx:wx() +%%
Option = {toggle, bool()} | {clientData, wx:wx()} | {shortHelpString, string()} | {longHelpString, string()} +%%

+ +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, + <>); +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, + <>). + +%% @spec (This::wxToolBar(),Toolid::integer(),X::term()|string(),X::term(),X::bool()|term(),X::integer()|term()) -> wx:wx() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), Toggle::bool(), XPos::integer()) -> addTool(This,Toolid,Bitmap,BmpDisabled,Toggle,XPos, [])

+%%

+%% addTool(This::wxToolBar(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap(), BmpDisabled::wxBitmap:wxBitmap(), [Option]) -> wx:wx() +%%
Option = {kind, WxItemKind} | {shortHelp, string()} | {longHelp, string()} | {data, wx:wx()} +%%
WxItemKind = integer() +%%
WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX +%%

+ +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> bool() +%% @doc See external documentation. +deleteTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_DeleteTool, + <>). + +%% @spec (This::wxToolBar(), Pos::integer()) -> bool() +%% @doc See external documentation. +deleteToolByPos(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_DeleteToolByPos, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer(), Enable::bool()) -> ok +%% @doc See external documentation. +enableTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Enable) + when is_integer(Toolid),is_boolean(Enable) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:cast(?wxToolBar_EnableTool, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> wx:wx() +%% @doc See external documentation. +findById(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_FindById, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> wxControl:wxControl() +%% @doc See external documentation. +findControl(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_FindControl, + <>). + +%% @spec (This::wxToolBar(), X::integer(), Y::integer()) -> wx:wx() +%% @doc See external documentation. +findToolForPosition(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_FindToolForPosition, + <>). + +%% @spec (This::wxToolBar()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getToolSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolSize, + <>). + +%% @spec (This::wxToolBar()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getToolBitmapSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolBitmapSize, + <>). + +%% @spec (This::wxToolBar()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getMargins(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetMargins, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> bool() +%% @doc See external documentation. +getToolEnabled(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolEnabled, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> string() +%% @doc See external documentation. +getToolLongHelp(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolLongHelp, + <>). + +%% @spec (This::wxToolBar()) -> integer() +%% @doc See external documentation. +getToolPacking(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolPacking, + <>). + +%% @spec (This::wxToolBar(), Id::integer()) -> integer() +%% @doc See external documentation. +getToolPos(#wx_ref{type=ThisT,ref=ThisRef},Id) + when is_integer(Id) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolPos, + <>). + +%% @spec (This::wxToolBar()) -> integer() +%% @doc See external documentation. +getToolSeparation(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolSeparation, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> string() +%% @doc See external documentation. +getToolShortHelp(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolShortHelp, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> bool() +%% @doc See external documentation. +getToolState(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_GetToolState, + <>). + +%% @spec (This::wxToolBar(), Pos::integer(), Control::wxControl:wxControl()) -> wx:wx() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxToolBar(), Pos::integer()) -> wx:wx() +%% @doc See external documentation. +insertSeparator(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_InsertSeparator, + <>). + +%% @spec (This::wxToolBar(), Pos::integer(), Tool::wx:wx()) -> wx:wx() +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% insertTool(This::wxToolBar(), Pos::integer(), Toolid::integer(), Label::string(), Bitmap::wxBitmap:wxBitmap()) -> insertTool(This,Pos,Toolid,Label,Bitmap, [])

+%%

+%% insertTool(This::wxToolBar(), Pos::integer(), Toolid::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wx:wx() +%%
Option = {bmpDisabled, wxBitmap:wxBitmap()} | {toggle, bool()} | {clientData, wx:wx()} | {shortHelp, string()} | {longHelp, string()} +%%

+ +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, + <>). + +%% @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 external documentation. +%%
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, + <>). + +%% @spec (This::wxToolBar()) -> bool() +%% @doc See external documentation. +realize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_Realize, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer()) -> wx:wx() +%% @doc See external documentation. +removeTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid) + when is_integer(Toolid) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:call(?wxToolBar_RemoveTool, + <>). + +%% @spec (This::wxToolBar(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +setMargins(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:cast(?wxToolBar_SetMargins, + <>). + +%% @spec (This::wxToolBar(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setToolBitmapSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:cast(?wxToolBar_SetToolBitmapSize, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer(), HelpString::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxToolBar(), Packing::integer()) -> ok +%% @doc See external documentation. +setToolPacking(#wx_ref{type=ThisT,ref=ThisRef},Packing) + when is_integer(Packing) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:cast(?wxToolBar_SetToolPacking, + <>). + +%% @spec (This::wxToolBar(), Id::integer(), HelpString::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxToolBar(), Separation::integer()) -> ok +%% @doc See external documentation. +setToolSeparation(#wx_ref{type=ThisT,ref=ThisRef},Separation) + when is_integer(Separation) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:cast(?wxToolBar_SetToolSeparation, + <>). + +%% @spec (This::wxToolBar(), Toolid::integer(), Toggle::bool()) -> ok +%% @doc See external documentation. +toggleTool(#wx_ref{type=ThisT,ref=ThisRef},Toolid,Toggle) + when is_integer(Toolid),is_boolean(Toggle) -> + ?CLASS(ThisT,wxToolBar), + wxe_util:cast(?wxToolBar_ToggleTool, + <>). + + %% 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: wxToolTip. +%% @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 external documentation. +enable(Flag) + when is_boolean(Flag) -> + wxe_util:cast(?wxToolTip_Enable, + <<(wxe_util:from_bool(Flag)):32/?UI>>). + +%% @spec (Msecs::integer()) -> ok +%% @doc See external documentation. +setDelay(Msecs) + when is_integer(Msecs) -> + wxe_util:cast(?wxToolTip_SetDelay, + <>). + +%% @spec (Tip::string()) -> wxToolTip() +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxToolTip()) -> string() +%% @doc See external documentation. +getTip(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolTip), + wxe_util:call(?wxToolTip_GetTip, + <>). + +%% @spec (This::wxToolTip()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolTip), + wxe_util:call(?wxToolTip_GetWindow, + <>). + +%% @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: wxToolbook. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxToolbook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxToolbook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxToolbook_AssignImageList, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxToolbook()) -> bool() +%% @doc See external documentation. +deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_DeleteAllPages, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> bool() +%% @doc See external documentation. +deletePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_DeletePage, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> bool() +%% @doc See external documentation. +removePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_RemovePage, + <>). + +%% @spec (This::wxToolbook()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetCurrentPage, + <>). + +%% @spec (This::wxToolbook()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetImageList, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getPage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetPage, + <>). + +%% @spec (This::wxToolbook()) -> integer() +%% @doc See external documentation. +getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetPageCount, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> integer() +%% @doc See external documentation. +getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetPageImage, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> string() +%% @doc See external documentation. +getPageText(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetPageText, + <>). + +%% @spec (This::wxToolbook()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_GetSelection, + <>). + +%% @spec (This::wxToolbook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()} +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_HitTest, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxToolbook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxToolbook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxToolbook_SetImageList, + <>). + +%% @spec (This::wxToolbook(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:cast(?wxToolbook_SetPageSize, + <>). + +%% @spec (This::wxToolbook(), N::integer(), ImageId::integer()) -> bool() +%% @doc See external documentation. +setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId) + when is_integer(N),is_integer(ImageId) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_SetPageImage, + <>). + +%% @spec (This::wxToolbook(), N::integer(), StrText::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> integer() +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_SetSelection, + <>). + +%% @spec (This::wxToolbook(), N::integer()) -> integer() +%% @doc See external documentation. +changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxToolbook), + wxe_util:call(?wxToolbook_ChangeSelection, + <>). + +%% @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: wxTopLevelWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +getIcon(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_GetIcon, + <>). + +%% @spec (This::wxTopLevelWindow()) -> wxIconBundle:wxIconBundle() +%% @doc See external documentation. +getIcons(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_GetIcons, + <>). + +%% @spec (This::wxTopLevelWindow()) -> string() +%% @doc See external documentation. +getTitle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_GetTitle, + <>). + +%% @spec (This::wxTopLevelWindow()) -> bool() +%% @doc See external documentation. +isActive(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_IsActive, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTopLevelWindow()) -> bool() +%% @doc See external documentation. +isFullScreen(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_IsFullScreen, + <>). + +%% @spec (This::wxTopLevelWindow()) -> bool() +%% @doc See external documentation. +isIconized(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_IsIconized, + <>). + +%% @spec (This::wxTopLevelWindow()) -> bool() +%% @doc See external documentation. +isMaximized(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + wxe_util:call(?wxTopLevelWindow_IsMaximized, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTopLevelWindow(), Icon::wxIcon:wxIcon()) -> ok +%% @doc See external documentation. +setIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + ?CLASS(IconT,wxIcon), + wxe_util:cast(?wxTopLevelWindow_SetIcon, + <>). + +%% @spec (This::wxTopLevelWindow(), Icons::wxIconBundle:wxIconBundle()) -> ok +%% @doc See external documentation. +setIcons(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconsT,ref=IconsRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + ?CLASS(IconsT,wxIconBundle), + wxe_util:cast(?wxTopLevelWindow_SetIcons, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTopLevelWindow(), Region::wxRegion:wxRegion()) -> bool() +%% @doc See external documentation. +setShape(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) -> + ?CLASS(ThisT,wxTopLevelWindow), + ?CLASS(RegionT,wxRegion), + wxe_util:call(?wxTopLevelWindow_SetShape, + <>). + +%% @spec (This::wxTopLevelWindow(), Title::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + + %% 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: wxTreeCtrl. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxTreeCtrl_AssignImageList, + <>). + +%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignStateImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxTreeCtrl_AssignStateImageList, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +collapse(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_Collapse, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +collapseAndReset(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_CollapseAndReset, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +delete(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_Delete, + <>). + +%% @spec (This::wxTreeCtrl()) -> ok +%% @doc See external documentation. +deleteAllItems(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_DeleteAllItems, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +deleteChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_DeleteChildren, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +ensureVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_EnsureVisible, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +expand(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_Expand, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl()) -> integer() +%% @doc See external documentation. +getCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetCount, + <>). + +%% @spec (This::wxTreeCtrl()) -> wxTextCtrl:wxTextCtrl() +%% @doc See external documentation. +getEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetEditControl, + <>). + +%% @spec (This::wxTreeCtrl()) -> wxTreeItemId() +%% @doc See external documentation. +getFirstVisibleItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetFirstVisibleItem, + <>). + +%% @spec (This::wxTreeCtrl()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetImageList, + <>). + +%% @spec (This::wxTreeCtrl()) -> integer() +%% @doc See external documentation. +getIndent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetIndent, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wx:colour() +%% @doc See external documentation. +getItemBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemBackgroundColour, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> term() +%% @doc See external documentation. +getItemData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemData, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxFont:wxFont() +%% @doc See external documentation. +getItemFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemFont, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> integer() +%% @doc See external documentation. +getItemImage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemImage_1, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> integer() +%% Option = {which, WxTreeItemIcon} +%% WxTreeItemIcon = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> string() +%% @doc See external documentation. +getItemText(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemText, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wx:colour() +%% @doc See external documentation. +getItemTextColour(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemTextColour, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId() +%% @doc See external documentation. +getLastChild(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetLastChild, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId() +%% @doc See external documentation. +getNextSibling(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetNextSibling, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId() +%% @doc See external documentation. +getNextVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetNextVisible, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId() +%% @doc See external documentation. +getItemParent(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetItemParent, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId() +%% @doc See external documentation. +getPrevSibling(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetPrevSibling, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> wxTreeItemId() +%% @doc See external documentation. +getPrevVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetPrevVisible, + <>). + +%% @spec (This::wxTreeCtrl()) -> wxTreeItemId() +%% @doc See external documentation. +getRootItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetRootItem, + <>). + +%% @spec (This::wxTreeCtrl()) -> wxTreeItemId() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetSelection, + <>). + +%% @spec (This::wxTreeCtrl()) -> {integer(),Val::[wxTreeItemId()]} +%% @doc See external documentation. +getSelections(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetSelections, + <>). + +%% @spec (This::wxTreeCtrl()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getStateImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_GetStateImageList, + <>). + +%% @spec (This::wxTreeCtrl(), Point::{X::integer(),Y::integer()}) -> wxTreeItemId() +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PointX,PointY}) + when is_integer(PointX),is_integer(PointY) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_HitTest, + <>). + +%% @spec (This::wxTreeCtrl(),Parent::wxTreeItemId(),X::integer()|wxTreeItemId(),Text::string()) -> wxTreeItemId() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), Pos::integer(), Text::string()) -> insertItem(This,Parent,Pos,Text, [])

+%%

+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), IdPrevious::wxTreeItemId(), Text::string()) -> insertItem(This,Parent,IdPrevious,Text, [])

+ +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 external documentation. +%%
Alternatives: +%%

+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), Pos::integer(), Text::string(), [Option]) -> wxTreeItemId() +%%
Option = {image, integer()} | {selImage, integer()} | {data, term()} +%%

+%%

+%% insertItem(This::wxTreeCtrl(), Parent::wxTreeItemId(), IdPrevious::wxTreeItemId(), Text::string(), [Option]) -> wxTreeItemId() +%%
Option = {image, integer()} | {selectedImage, integer()} | {data, term()} +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool() +%% @doc See external documentation. +isBold(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_IsBold, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool() +%% @doc See external documentation. +isExpanded(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_IsExpanded, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool() +%% @doc See external documentation. +isSelected(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_IsSelected, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool() +%% @doc See external documentation. +isVisible(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_IsVisible, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> bool() +%% @doc See external documentation. +itemHasChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:call(?wxTreeCtrl_ItemHasChildren, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +scrollTo(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_ScrollTo, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +selectItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_SelectItem_1, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), [Option]) -> ok +%% Option = {select, bool()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Indent::integer()) -> ok +%% @doc See external documentation. +setIndent(#wx_ref{type=ThisT,ref=ThisRef},Indent) + when is_integer(Indent) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_SetIndent, + <>). + +%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxTreeCtrl_SetImageList, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Data::term()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Image::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Image::integer(), [Option]) -> ok +%% Option = {which, WxTreeItemIcon} +%% WxTreeItemIcon = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId(), Col::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTreeCtrl(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setStateImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxTreeCtrl_SetStateImageList, + <>). + +%% @spec (This::wxTreeCtrl(), Styles::integer()) -> ok +%% @doc See external documentation. +setWindowStyle(#wx_ref{type=ThisT,ref=ThisRef},Styles) + when is_integer(Styles) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_SetWindowStyle, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +sortChildren(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_SortChildren, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +toggle(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_Toggle, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +toggleItemSelection(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_ToggleItemSelection, + <>). + +%% @spec (This::wxTreeCtrl()) -> ok +%% @doc See external documentation. +unselect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_Unselect, + <>). + +%% @spec (This::wxTreeCtrl()) -> ok +%% @doc See external documentation. +unselectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_UnselectAll, + <>). + +%% @spec (This::wxTreeCtrl(), Item::wxTreeItemId()) -> ok +%% @doc See external documentation. +unselectItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=wxTreeItemId,ref=ItemRef}) -> + ?CLASS(ThisT,wxTreeCtrl), + wxe_util:cast(?wxTreeCtrl_UnselectItem, + <>). + +%% @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: wxTreeEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
command_tree_begin_drag, command_tree_begin_rdrag, command_tree_begin_label_edit, command_tree_end_label_edit, command_tree_delete_item, command_tree_get_info, command_tree_set_info, command_tree_item_expanded, command_tree_item_expanding, command_tree_item_collapsed, command_tree_item_collapsing, command_tree_sel_changed, command_tree_sel_changing, command_tree_key_down, command_tree_item_activated, command_tree_item_right_click, command_tree_item_middle_click, command_tree_end_drag, command_tree_state_image_click, command_tree_item_gettooltip, command_tree_item_menu
+%% See also the message variant {@link wxEvtHandler:wxTree(). #wxTree{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxNotifyEvent} +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +getKeyCode(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_GetKeyCode, + <>). + +%% @spec (This::wxTreeEvent()) -> wxTreeItemId() +%% @doc See external documentation. +getItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_GetItem, + <>). + +%% @spec (This::wxTreeEvent()) -> wxKeyEvent:wxKeyEvent() +%% @doc See external documentation. +getKeyEvent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_GetKeyEvent, + <>). + +%% @spec (This::wxTreeEvent()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_GetLabel, + <>). + +%% @spec (This::wxTreeEvent()) -> wxTreeItemId() +%% @doc See external documentation. +getOldItem(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_GetOldItem, + <>). + +%% @spec (This::wxTreeEvent()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_GetPoint, + <>). + +%% @spec (This::wxTreeEvent()) -> bool() +%% @doc See external documentation. +isEditCancelled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreeEvent), + wxe_util:call(?wxTreeEvent_IsEditCancelled, + <>). + +%% @spec (This::wxTreeEvent(), ToolTip::string()) -> ok +%% @doc See external documentation. +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, + <>). + + %% 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: wxTreebook. +%%

This class is derived (and can use functions) from: +%%
{@link wxControl} +%%
{@link wxWindow} +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreebook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxTreebook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxTreebook_AssignImageList, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreebook()) -> bool() +%% @doc See external documentation. +deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_DeleteAllPages, + <>). + +%% @spec (This::wxTreebook(), Pos::integer()) -> bool() +%% @doc See external documentation. +deletePage(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_DeletePage, + <>). + +%% @spec (This::wxTreebook(), N::integer()) -> bool() +%% @doc See external documentation. +removePage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_RemovePage, + <>). + +%% @spec (This::wxTreebook()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetCurrentPage, + <>). + +%% @spec (This::wxTreebook()) -> wxImageList:wxImageList() +%% @doc See external documentation. +getImageList(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetImageList, + <>). + +%% @spec (This::wxTreebook(), N::integer()) -> wxWindow:wxWindow() +%% @doc See external documentation. +getPage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetPage, + <>). + +%% @spec (This::wxTreebook()) -> integer() +%% @doc See external documentation. +getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetPageCount, + <>). + +%% @spec (This::wxTreebook(), N::integer()) -> integer() +%% @doc See external documentation. +getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetPageImage, + <>). + +%% @spec (This::wxTreebook(), N::integer()) -> string() +%% @doc See external documentation. +getPageText(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetPageText, + <>). + +%% @spec (This::wxTreebook()) -> integer() +%% @doc See external documentation. +getSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_GetSelection, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreebook(), Pos::integer()) -> bool() +%% @doc See external documentation. +isNodeExpanded(#wx_ref{type=ThisT,ref=ThisRef},Pos) + when is_integer(Pos) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_IsNodeExpanded, + <>). + +%% @spec (This::wxTreebook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()} +%% @doc See external documentation. +hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_HitTest, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxTreebook(), ImageList::wxImageList:wxImageList()) -> ok +%% @doc See external documentation. +setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) -> + ?CLASS(ThisT,wxTreebook), + ?CLASS(ImageListT,wxImageList), + wxe_util:cast(?wxTreebook_SetImageList, + <>). + +%% @spec (This::wxTreebook(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:cast(?wxTreebook_SetPageSize, + <>). + +%% @spec (This::wxTreebook(), N::integer(), ImageId::integer()) -> bool() +%% @doc See external documentation. +setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId) + when is_integer(N),is_integer(ImageId) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_SetPageImage, + <>). + +%% @spec (This::wxTreebook(), N::integer(), StrText::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxTreebook(), N::integer()) -> integer() +%% @doc See external documentation. +setSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_SetSelection, + <>). + +%% @spec (This::wxTreebook(), N::integer()) -> integer() +%% @doc See external documentation. +changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N) + when is_integer(N) -> + ?CLASS(ThisT,wxTreebook), + wxe_util:call(?wxTreebook_ChangeSelection, + <>). + +%% @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: wxUpdateUIEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
update_ui
+%% See also the message variant {@link wxEvtHandler:wxUpdateUI(). #wxUpdateUI{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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 external documentation. +canUpdate(#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(WinT,wxWindow), + wxe_util:call(?wxUpdateUIEvent_CanUpdate, + <>). + +%% @spec (This::wxUpdateUIEvent(), Check::bool()) -> ok +%% @doc See external documentation. +check(#wx_ref{type=ThisT,ref=ThisRef},Check) + when is_boolean(Check) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:cast(?wxUpdateUIEvent_Check, + <>). + +%% @spec (This::wxUpdateUIEvent(), Enable::bool()) -> ok +%% @doc See external documentation. +enable(#wx_ref{type=ThisT,ref=ThisRef},Enable) + when is_boolean(Enable) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:cast(?wxUpdateUIEvent_Enable, + <>). + +%% @spec (This::wxUpdateUIEvent(), Show::bool()) -> ok +%% @doc See external documentation. +show(#wx_ref{type=ThisT,ref=ThisRef},Show) + when is_boolean(Show) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:cast(?wxUpdateUIEvent_Show, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getChecked(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetChecked, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetEnabled, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getShown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetShown, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getSetChecked(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetSetChecked, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getSetEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetSetEnabled, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getSetShown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetSetShown, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> bool() +%% @doc See external documentation. +getSetText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetSetText, + <>). + +%% @spec (This::wxUpdateUIEvent()) -> string() +%% @doc See external documentation. +getText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxUpdateUIEvent), + wxe_util:call(?wxUpdateUIEvent_GetText, + <>). + +%% @spec () -> WxUpdateUIMode +%% WxUpdateUIMode = integer() +%% @doc See external documentation. +%%
WxUpdateUIMode is one of ?wxUPDATE_UI_PROCESS_ALL | ?wxUPDATE_UI_PROCESS_SPECIFIED +getMode() -> + wxe_util:call(?wxUpdateUIEvent_GetMode, + <<>>). + +%% @spec () -> integer() +%% @doc See external documentation. +getUpdateInterval() -> + wxe_util:call(?wxUpdateUIEvent_GetUpdateInterval, + <<>>). + +%% @spec () -> ok +%% @doc See external documentation. +resetUpdateTime() -> + wxe_util:cast(?wxUpdateUIEvent_ResetUpdateTime, + <<>>). + +%% @spec (Mode::WxUpdateUIMode) -> ok +%% WxUpdateUIMode = integer() +%% @doc See external documentation. +%%
WxUpdateUIMode is one of ?wxUPDATE_UI_PROCESS_ALL | ?wxUPDATE_UI_PROCESS_SPECIFIED +setMode(Mode) + when is_integer(Mode) -> + wxe_util:cast(?wxUpdateUIEvent_SetMode, + <>). + +%% @spec (This::wxUpdateUIEvent(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (UpdateInterval::integer()) -> ok +%% @doc See external documentation. +setUpdateInterval(UpdateInterval) + when is_integer(UpdateInterval) -> + wxe_util:cast(?wxUpdateUIEvent_SetUpdateInterval, + <>). + + %% 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: wxWindow. +%%

This class is derived (and can use functions) from: +%%
{@link wxEvtHandler} +%%

+%% @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 external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +cacheBestSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) + when is_integer(SizeW),is_integer(SizeH) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_CacheBestSize, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +captureMouse(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_CaptureMouse, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +clearBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_ClearBackground, + <>). + +%% @spec (This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Sz::{W::integer(),H::integer()}) -> {W::integer(),H::integer()} +%% @doc See external documentation. +convertDialogToPixels(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) + when is_integer(SzW),is_integer(SzH) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_ConvertDialogToPixels, + <>). + +%% @spec (This::wxWindow(), Sz::{W::integer(),H::integer()}) -> {W::integer(),H::integer()} +%% @doc See external documentation. +convertPixelsToDialog(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) + when is_integer(SzW),is_integer(SzH) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_ConvertPixelsToDialog, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +'Destroy'(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_Destroy, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +destroyChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_DestroyChildren, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +disable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_Disable, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec () -> wxWindow() +%% @doc See external documentation. +findFocus() -> + wxe_util:call(?wxWindow_FindFocus, + <<>>). + +%% @spec (This::wxWindow(),X::integer()|string()) -> wxWindow() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% findWindow(This::wxWindow(), Winid::integer()) -> wxWindow() +%%

+%%

+%% findWindow(This::wxWindow(), Name::string()) -> wxWindow() +%%

+findWindow(#wx_ref{type=ThisT,ref=ThisRef},Winid) + when is_integer(Winid) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_FindWindow_1_0, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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 external documentation. +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 external documentation. +fit(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_Fit, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +fitInside(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_FitInside, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +freeze(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_Freeze, + <>). + +%% @spec (This::wxWindow()) -> wxAcceleratorTable:wxAcceleratorTable() +%% @doc See external documentation. +getAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetAcceleratorTable, + <>). + +%% @spec (This::wxWindow()) -> wx:colour() +%% @doc See external documentation. +getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetBackgroundColour, + <>). + +%% @spec (This::wxWindow()) -> WxBackgroundStyle +%% WxBackgroundStyle = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getBestSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetBestSize, + <>). + +%% @spec (This::wxWindow()) -> wxCaret:wxCaret() +%% @doc See external documentation. +getCaret(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetCaret, + <>). + +%% @spec () -> wxWindow() +%% @doc See external documentation. +getCapture() -> + wxe_util:call(?wxWindow_GetCapture, + <<>>). + +%% @spec (This::wxWindow()) -> integer() +%% @doc See external documentation. +getCharHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetCharHeight, + <>). + +%% @spec (This::wxWindow()) -> integer() +%% @doc See external documentation. +getCharWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetCharWidth, + <>). + +%% @spec (This::wxWindow()) -> [wxWindow()] +%% @doc See external documentation. +getChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetChildren, + <>). + +%% @spec (This::wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getClientSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetClientSize, + <>). + +%% @spec (This::wxWindow()) -> wxSizer:wxSizer() +%% @doc See external documentation. +getContainingSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetContainingSizer, + <>). + +%% @spec (This::wxWindow()) -> wxCursor:wxCursor() +%% @doc See external documentation. +getCursor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetCursor, + <>). + +%% @spec (This::wxWindow()) -> wxDropTarget:wxDropTarget() +%% @doc See external documentation. +getDropTarget(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetDropTarget, + <>). + +%% @spec (This::wxWindow()) -> wxEvtHandler:wxEvtHandler() +%% @doc See external documentation. +getEventHandler(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetEventHandler, + <>). + +%% @spec (This::wxWindow()) -> integer() +%% @doc See external documentation. +getExtraStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetExtraStyle, + <>). + +%% @spec (This::wxWindow()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetFont, + <>). + +%% @spec (This::wxWindow()) -> wx:colour() +%% @doc See external documentation. +getForegroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetForegroundColour, + <>). + +%% @spec (This::wxWindow()) -> wxWindow() +%% @doc See external documentation. +getGrandParent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetGrandParent, + <>). + +%% @spec (This::wxWindow()) -> integer() +%% @doc See external documentation. +getHandle(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetHandle, + <>). + +%% @spec (This::wxWindow()) -> string() +%% @doc See external documentation. +getHelpText(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetHelpText, + <>). + +%% @spec (This::wxWindow()) -> integer() +%% @doc See external documentation. +getId(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetId, + <>). + +%% @spec (This::wxWindow()) -> string() +%% @doc See external documentation. +getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetLabel, + <>). + +%% @spec (This::wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getMaxSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetMaxSize, + <>). + +%% @spec (This::wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetMinSize, + <>). + +%% @spec (This::wxWindow()) -> string() +%% @doc See external documentation. +getName(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetName, + <>). + +%% @spec (This::wxWindow()) -> wxWindow() +%% @doc See external documentation. +getParent(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetParent, + <>). + +%% @spec (This::wxWindow()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetPosition, + <>). + +%% @spec (This::wxWindow()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetRect, + <>). + +%% @spec (This::wxWindow()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getScreenPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetScreenPosition, + <>). + +%% @spec (This::wxWindow()) -> {X::integer(),Y::integer(),W::integer(),H::integer()} +%% @doc See external documentation. +getScreenRect(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetScreenRect, + <>). + +%% @spec (This::wxWindow(), Orient::integer()) -> integer() +%% @doc See external documentation. +getScrollPos(#wx_ref{type=ThisT,ref=ThisRef},Orient) + when is_integer(Orient) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetScrollPos, + <>). + +%% @spec (This::wxWindow(), Orient::integer()) -> integer() +%% @doc See external documentation. +getScrollRange(#wx_ref{type=ThisT,ref=ThisRef},Orient) + when is_integer(Orient) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetScrollRange, + <>). + +%% @spec (This::wxWindow(), Orient::integer()) -> integer() +%% @doc See external documentation. +getScrollThumb(#wx_ref{type=ThisT,ref=ThisRef},Orient) + when is_integer(Orient) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetScrollThumb, + <>). + +%% @spec (This::wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetSize, + <>). + +%% @spec (This::wxWindow()) -> wxSizer:wxSizer() +%% @doc See external documentation. +getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetSizer, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> wxToolTip:wxToolTip() +%% @doc See external documentation. +getToolTip(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetToolTip, + <>). + +%% @spec (This::wxWindow()) -> wxRegion:wxRegion() +%% @doc See external documentation. +getUpdateRegion(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetUpdateRegion, + <>). + +%% @spec (This::wxWindow()) -> {W::integer(),H::integer()} +%% @doc See external documentation. +getVirtualSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetVirtualSize, + <>). + +%% @spec (This::wxWindow()) -> integer() +%% @doc See external documentation. +getWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_GetWindowStyleFlag, + <>). + +%% @spec (This::wxWindow()) -> WxWindowVariant +%% WxWindowVariant = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +hasCapture(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_HasCapture, + <>). + +%% @spec (This::wxWindow(), Orient::integer()) -> bool() +%% @doc See external documentation. +hasScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Orient) + when is_integer(Orient) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_HasScrollbar, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +hasTransparentBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_HasTransparentBackground, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +hide(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_Hide, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +inheritAttributes(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_InheritAttributes, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +initDialog(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_InitDialog, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +invalidateBestSize(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_InvalidateBestSize, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_IsEnabled, + <>). + +%% @spec (This::wxWindow(),X::term()) -> bool() +%% @doc See external documentation. +%%
Alternatives: +%%

+%% isExposed(This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> bool() +%%

+%%

+%% isExposed(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> bool() +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +isRetained(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_IsRetained, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_IsShown, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +isTopLevel(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_IsTopLevel, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +layout(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_Layout, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +lineDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_LineDown, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +lineUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_LineUp, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +lower(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_Lower, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% move(This::wxWindow(), X::integer(), Y::integer()) -> move(This,X,Y, [])

+%%

+%% move(This::wxWindow(), Pt::{X::integer(),Y::integer()}, [Option]) -> ok +%%
Option = {flags, integer()} +%%

+ +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, + <>). + +%% @spec (This::wxWindow(), X::integer(), Y::integer(), [Option]) -> ok +%% Option = {flags, integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Win::wxWindow()) -> ok +%% @doc See external documentation. +moveAfterInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(WinT,wxWindow), + wxe_util:cast(?wxWindow_MoveAfterInTabOrder, + <>). + +%% @spec (This::wxWindow(), Win::wxWindow()) -> ok +%% @doc See external documentation. +moveBeforeInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(WinT,wxWindow), + wxe_util:cast(?wxWindow_MoveBeforeInTabOrder, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +pageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_PageDown, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +pageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_PageUp, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Menu::wxMenu:wxMenu(), X::integer(), Y::integer()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +raise(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_Raise, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +releaseMouse(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_ReleaseMouse, + <>). + +%% @spec (This::wxWindow(), Child::wxWindow()) -> ok +%% @doc See external documentation. +removeChild(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ChildT,ref=ChildRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(ChildT,wxWindow), + wxe_util:cast(?wxWindow_RemoveChild, + <>). + +%% @spec (This::wxWindow(), NewParent::wxWindow()) -> bool() +%% @doc See external documentation. +reparent(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=NewParentT,ref=NewParentRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(NewParentT,wxWindow), + wxe_util:call(?wxWindow_Reparent, + <>). + +%% @spec (This::wxWindow()) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +screenToClient(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_ScreenToClient_2, + <>). + +%% @spec (This::wxWindow(), Pt::{X::integer(),Y::integer()}) -> {X::integer(),Y::integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Lines::integer()) -> bool() +%% @doc See external documentation. +scrollLines(#wx_ref{type=ThisT,ref=ThisRef},Lines) + when is_integer(Lines) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_ScrollLines, + <>). + +%% @spec (This::wxWindow(), Pages::integer()) -> bool() +%% @doc See external documentation. +scrollPages(#wx_ref{type=ThisT,ref=ThisRef},Pages) + when is_integer(Pages) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_ScrollPages, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Accel::wxAcceleratorTable:wxAcceleratorTable()) -> ok +%% @doc See external documentation. +setAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=AccelT,ref=AccelRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(AccelT,wxAcceleratorTable), + wxe_util:cast(?wxWindow_SetAcceleratorTable, + <>). + +%% @spec (This::wxWindow(), AutoLayout::bool()) -> ok +%% @doc See external documentation. +setAutoLayout(#wx_ref{type=ThisT,ref=ThisRef},AutoLayout) + when is_boolean(AutoLayout) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetAutoLayout, + <>). + +%% @spec (This::wxWindow(), Colour::wx:colour()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Style::WxBackgroundStyle) -> bool() +%% WxBackgroundStyle = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxWindow(), Caret::wxCaret:wxCaret()) -> ok +%% @doc See external documentation. +setCaret(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CaretT,ref=CaretRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(CaretT,wxCaret), + wxe_util:cast(?wxWindow_SetCaret, + <>). + +%% @spec (This::wxWindow(),X::term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setClientSize(This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok +%%

+%%

+%% setClientSize(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxWindow(), Width::integer(), Height::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok +%% @doc See external documentation. +setContainingSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(SizerT,wxSizer), + wxe_util:cast(?wxWindow_SetContainingSizer, + <>). + +%% @spec (This::wxWindow(), Cursor::wxCursor:wxCursor()) -> bool() +%% @doc See external documentation. +setCursor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CursorT,ref=CursorRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(CursorT,wxCursor), + wxe_util:call(?wxWindow_SetCursor, + <>). + +%% @spec (This::wxWindow(), MaxSize::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setMaxSize(#wx_ref{type=ThisT,ref=ThisRef},{MaxSizeW,MaxSizeH}) + when is_integer(MaxSizeW),is_integer(MaxSizeH) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetMaxSize, + <>). + +%% @spec (This::wxWindow(), MinSize::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}) + when is_integer(MinSizeW),is_integer(MinSizeH) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetMinSize, + <>). + +%% @spec (This::wxWindow(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setOwnFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxWindow_SetOwnFont, + <>). + +%% @spec (This::wxWindow(), Colour::wx:colour()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), DropTarget::wxDropTarget:wxDropTarget()) -> ok +%% @doc See external documentation. +setDropTarget(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DropTargetT,ref=DropTargetRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(DropTargetT,wxDropTarget), + wxe_util:cast(?wxWindow_SetDropTarget, + <>). + +%% @spec (This::wxWindow(), ExStyle::integer()) -> ok +%% @doc See external documentation. +setExtraStyle(#wx_ref{type=ThisT,ref=ThisRef},ExStyle) + when is_integer(ExStyle) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetExtraStyle, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +setFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetFocus, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +setFocusFromKbd(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetFocusFromKbd, + <>). + +%% @spec (This::wxWindow(), Font::wxFont:wxFont()) -> bool() +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(FontT,wxFont), + wxe_util:call(?wxWindow_SetFont, + <>). + +%% @spec (This::wxWindow(), Colour::wx:colour()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Text::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Winid::integer()) -> ok +%% @doc See external documentation. +setId(#wx_ref{type=ThisT,ref=ThisRef},Winid) + when is_integer(Winid) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetId, + <>). + +%% @spec (This::wxWindow(), Label::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Name::string()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Pal::wxPalette:wxPalette()) -> ok +%% @doc See external documentation. +setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PalT,ref=PalRef}) -> + ?CLASS(ThisT,wxWindow), + ?CLASS(PalT,wxPalette), + wxe_util:cast(?wxWindow_SetPalette, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow(),X::term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setSize(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> setSize(This,Rect, [])

+%%

+%% setSize(This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok +%%

+ +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, + <>). + +%% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setSize(This::wxWindow(), Width::integer(), Height::integer()) -> ok +%%

+%%

+%% setSize(This::wxWindow(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}, [Option]) -> ok +%%
Option = {sizeFlags, integer()} +%%

+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, + <>); +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% setSizeHints(This::wxWindow(), MinW::integer(), MinH::integer()) -> setSizeHints(This,MinW,MinH, [])

+%%

+%% setSizeHints(This::wxWindow(), MinSize::{W::integer(),H::integer()}, [Option]) -> ok +%%
Option = {maxSize, {W::integer(),H::integer()}} | {incSize, {W::integer(),H::integer()}} +%%

+ +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, + <>). + +%% @spec (This::wxWindow(), MinW::integer(), MinH::integer(), [Option]) -> ok +%% Option = {maxW, integer()} | {maxH, integer()} | {incW, integer()} | {incH, integer()} +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow(), EnableTheme::bool()) -> ok +%% @doc See external documentation. +setThemeEnabled(#wx_ref{type=ThisT,ref=ThisRef},EnableTheme) + when is_boolean(EnableTheme) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetThemeEnabled, + <>). + +%% @spec (This::wxWindow(),X::string()|term()) -> ok +%% @doc See external documentation. +%%
Alternatives: +%%

+%% setToolTip(This::wxWindow(), Tip::string()) -> ok +%%

+%%

+%% setToolTip(This::wxWindow(), Tip::wxToolTip:wxToolTip()) -> ok +%%

+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, + <>); +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, + <>). + +%% @spec (This::wxWindow(), Size::{W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +%%
Alternatives: +%%

+%% setVirtualSizeHints(This::wxWindow(), MinW::integer(), MinH::integer()) -> setVirtualSizeHints(This,MinW,MinH, [])

+%%

+%% setVirtualSizeHints(This::wxWindow(), MinSize::{W::integer(),H::integer()}, [Option]) -> ok +%%
Option = {maxSize, {W::integer(),H::integer()}} +%%

+ +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, + <>). + +%% @spec (This::wxWindow(), MinW::integer(), MinH::integer(), [Option]) -> ok +%% Option = {maxW, integer()} | {maxH, integer()} +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxWindow(), Style::integer()) -> ok +%% @doc See external documentation. +setWindowStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) + when is_integer(Style) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetWindowStyle, + <>). + +%% @spec (This::wxWindow(), Style::integer()) -> ok +%% @doc See external documentation. +setWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef},Style) + when is_integer(Style) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_SetWindowStyleFlag, + <>). + +%% @spec (This::wxWindow(), Variant::WxWindowVariant) -> ok +%% WxWindowVariant = integer() +%% @doc See external documentation. +%%
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, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +shouldInheritColours(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_ShouldInheritColours, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +thaw(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_Thaw, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +transferDataFromWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_TransferDataFromWindow, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +transferDataToWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_TransferDataToWindow, + <>). + +%% @spec (This::wxWindow()) -> ok +%% @doc See external documentation. +update(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_Update, + <>). + +%% @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 external documentation. +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, + <>). + +%% @spec (This::wxWindow()) -> bool() +%% @doc See external documentation. +validate(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxWindow), + wxe_util:call(?wxWindow_Validate, + <>). + +%% @spec (This::wxWindow(), X::integer(), Y::integer()) -> ok +%% @doc See external documentation. +warpPointer(#wx_ref{type=ThisT,ref=ThisRef},X,Y) + when is_integer(X),is_integer(Y) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_WarpPointer, + <>). + +%% @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: wxWindowCreateEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
create
+%% See also the message variant {@link wxEvtHandler:wxWindowCreate(). #wxWindowCreate{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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: wxWindowDC. +%%

This class is derived (and can use functions) from: +%%
{@link wxDC} +%%

+%% @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 external documentation. +new() -> + wxe_util:construct(?wxWindowDC_new_0, + <<>>). + +%% @spec (Win::wxWindow:wxWindow()) -> wxWindowDC() +%% @doc See external documentation. +new(#wx_ref{type=WinT,ref=WinRef}) -> + ?CLASS(WinT,wxWindow), + wxe_util:construct(?wxWindowDC_new_1, + <>). + +%% @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: wxWindowDestroyEvent. +%%
Use {@link wxEvtHandler:connect/3.} with EventType:
+%%
destroy
+%% See also the message variant {@link wxEvtHandler:wxWindowDestroy(). #wxWindowDestroy{}} event record type. +%% +%%

This class is derived (and can use functions) from: +%%
{@link wxCommandEvent} +%%
{@link wxEvent} +%%

+%% @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: wxXmlResource. +%% @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 external documentation. +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, + <>). + +%% @spec (Filemask::string(), [Option]) -> wxXmlResource() +%% Option = {flags, integer()} | {domain, string()} +%% @doc See external documentation. +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 external documentation. +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, + <>). + +%% @spec (This::wxXmlResource()) -> ok +%% @doc See external documentation. +clearHandlers(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxXmlResource), + wxe_util:cast(?wxXmlResource_ClearHandlers, + <>). + +%% @spec (This::wxXmlResource(), Major::integer(), Minor::integer(), Release::integer(), Revision::integer()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec () -> wxXmlResource() +%% @doc See external documentation. +get() -> + wxe_util:call(?wxXmlResource_Get, + <<>>). + +%% @spec (This::wxXmlResource()) -> integer() +%% @doc See external documentation. +getFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxXmlResource), + wxe_util:call(?wxXmlResource_GetFlags, + <>). + +%% @spec (This::wxXmlResource()) -> integer() +%% @doc See external documentation. +getVersion(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxXmlResource), + wxe_util:call(?wxXmlResource_GetVersion, + <>). + +%% @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 external documentation. +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 external documentation. +initAllHandlers(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxXmlResource), + wxe_util:cast(?wxXmlResource_InitAllHandlers, + <>). + +%% @spec (This::wxXmlResource(), Filemask::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Name::string()) -> wxBitmap:wxBitmap() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxDialog:wxDialog() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Dlg::wxDialog:wxDialog(), Parent::wxWindow:wxWindow(), Name::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxFrame:wxFrame() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Frame::wxFrame:wxFrame(), Parent::wxWindow:wxWindow(), Name::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Name::string()) -> wxIcon:wxIcon() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Name::string()) -> wxMenu:wxMenu() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Name::string()) -> wxMenuBar:wxMenuBar() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxMenuBar:wxMenuBar() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxPanel:wxPanel() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Panel::wxPanel:wxPanel(), Parent::wxWindow:wxWindow(), Name::string()) -> bool() +%% @doc See external documentation. +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, + <>). + +%% @spec (This::wxXmlResource(), Parent::wxWindow:wxWindow(), Name::string()) -> wxToolBar:wxToolBar() +%% @doc See external documentation. +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, + <>). + +%% @spec (Res::wxXmlResource()) -> wxXmlResource() +%% @doc See external documentation. +set(#wx_ref{type=ResT,ref=ResRef}) -> + ?CLASS(ResT,wxXmlResource), + wxe_util:call(?wxXmlResource_Set, + <>). + +%% @spec (This::wxXmlResource(), Flags::integer()) -> ok +%% @doc See external documentation. +setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) + when is_integer(Flags) -> + ?CLASS(ThisT,wxXmlResource), + wxe_util:cast(?wxXmlResource_SetFlags, + <>). + +%% @spec (This::wxXmlResource(), Filename::string()) -> bool() +%% @doc See external documentation. +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, + <>). + + +%% @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 Type. +%% Example:
+%% Xrc = wxXmlResource:get(),
+%% Dlg = wxDialog:new(),
+%% true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"),
+%% LCtrl = xrcctrl(Dlg, "controls_listctrl", wxListCtrl),
+%% wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]),
+ +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: Misc. + +%% 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 external documentation. +%%
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, + <>). + +%% @spec () -> {X::integer(),Y::integer()} +%% @doc See external documentation. +getMousePosition() -> + wxe_util:call(?utils_wxGetMousePosition, + <<>>). + +%% @spec () -> wx:wxMouseState() +%% @doc See external documentation. +getMouseState() -> + wxe_util:call(?utils_wxGetMouseState, + <<>>). + +%% @spec (Flag::bool()) -> bool() +%% @doc See external documentation. +setDetectableAutoRepeat(Flag) + when is_boolean(Flag) -> + wxe_util:call(?utils_wxSetDetectableAutoRepeat, + <<(wxe_util:from_bool(Flag)):32/?UI>>). + +%% @spec () -> ok +%% @doc See external documentation. +bell() -> + wxe_util:cast(?utils_wxBell, + <<>>). + +%% @spec (Frame::wxFrame:wxFrame(), MenuString::string(), ItemString::string()) -> integer() +%% @doc See external documentation. +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, + <>). + +%% @spec (Pt::{X::integer(),Y::integer()}) -> wxWindow:wxWindow() +%% @doc See external documentation. +genericFindWindowAtPoint({PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + wxe_util:call(?utils_wxGenericFindWindowAtPoint, + <>). + +%% @spec (Pt::{X::integer(),Y::integer()}) -> wxWindow:wxWindow() +%% @doc See external documentation. +findWindowAtPoint({PtX,PtY}) + when is_integer(PtX),is_integer(PtY) -> + wxe_util:call(?utils_wxFindWindowAtPoint, + <>). + +%% @spec () -> ok +%% @equiv beginBusyCursor([]) +beginBusyCursor() -> + beginBusyCursor([]). + +%% @spec ([Option]) -> ok +%% Option = {cursor, wxCursor:wxCursor()} +%% @doc See external documentation. +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, + <>). + +%% @spec () -> ok +%% @doc See external documentation. +endBusyCursor() -> + wxe_util:cast(?utils_wxEndBusyCursor, + <<>>). + +%% @spec () -> bool() +%% @doc See external documentation. +isBusy() -> + wxe_util:call(?utils_wxIsBusy, + <<>>). + +%% @spec (WFlags::WxShutdownFlags) -> bool() +%% WxShutdownFlags = integer() +%% @doc See external documentation. +%%
WxShutdownFlags is one of ?wxSHUTDOWN_POWEROFF | ?wxSHUTDOWN_REBOOT +shutdown(WFlags) + when is_integer(WFlags) -> + wxe_util:call(?utils_wxShutdown, + <>). + +%% @spec () -> bool() +%% @equiv shell([]) +shell() -> + shell([]). + +%% @spec ([Option]) -> bool() +%% Option = {command, string()} +%% @doc See external documentation. +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, + <>). + +%% @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 external documentation. +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 external documentation. +getEmailAddress() -> + wxe_util:call(?utils_wxGetEmailAddress, + <<>>). + +%% @spec () -> string() +%% @doc See external documentation. +getUserId() -> + wxe_util:call(?utils_wxGetUserId, + <<>>). + +%% @spec () -> string() +%% @doc See external documentation. +getHomeDir() -> + wxe_util:call(?utils_wxGetHomeDir, + <<>>). + +%% @spec () -> integer() +%% @doc See external documentation. +newId() -> + wxe_util:call(?utils_wxNewId, + <<>>). + +%% @spec (Id::integer()) -> ok +%% @doc See external documentation. +registerId(Id) + when is_integer(Id) -> + wxe_util:cast(?utils_wxRegisterId, + <>). + +%% @spec () -> integer() +%% @doc See external documentation. +getCurrentId() -> + wxe_util:call(?utils_wxGetCurrentId, + <<>>). + +%% @spec () -> string() +%% @doc See external documentation. +getOsDescription() -> + wxe_util:call(?utils_wxGetOsDescription, + <<>>). + +%% @spec () -> bool() +%% @doc See external documentation. +isPlatformLittleEndian() -> + wxe_util:call(?utils_wxIsPlatformLittleEndian, + <<>>). + +%% @spec () -> bool() +%% @doc See external documentation. +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). -- cgit v1.2.3