Contents Up Previous Next

Classes by category

A classification of wxWindows classes by category.

Managed windows

There are several types of window that are directly controlled by the window manager (such as MS Windows, or the Motif Window Manager). Frames may contain windows, and dialog boxes may directly contain controls.

wxDialog Dialog box
wxFrame Normal frame
wxMDIParentFrame MDI parent frame
wxMDIChildFrame MDI child frame
wxMiniFrame A frame with a small title bar
wxTabbedDialog Tabbed dialog

See also Common dialogs.

Miscellaneous windows

The following are a variety of windows that are derived from wxWindow.

wxGrid A grid (table) window
wxPanel A window whose colour changes according to current user settings
wxSashWindow Window with four optional sashes that can be dragged
wxSashLayoutWindow Window that can be involved in an IDE-like layout arrangement
wxScrolledWindow Window with automatically managed scrollbars
wxSplitterWindow Window which can be split vertically or horizontally
wxStatusBar Implements the status bar on a frame
wxToolBar Toolbar class
wxNotebook Notebook class

Common dialogs

Overview

Common dialogs are ready-made dialog classes which are frequently used in an application.

wxDialog Base class for common dialogs
wxColourDialog Colour chooser dialog
wxDirDialog Directory selector dialog
wxFileDialog File selector dialog
wxMultipleChoiceDialog Dialog to get one or more selections from a list
wxSingleChoiceDialog Dialog to get a single selection from a list and return the string
wxTextEntryDialog Dialog to get a single line of text from the user
wxFontDialog Font chooser dialog
wxPageSetupDialog Standard page setup dialog
wxPrintDialog Standard print dialog
wxMessageDialog Simple message box dialog

Controls

Typically, these are small windows which provide interaction with the user. Controls that are not static can have validators associated with them.

wxControl The base class for controls
wxButton Push button control, displaying text
wxBitmapButton Push button control, displaying a bitmap
wxCheckBox Checkbox control
wxCheckListBox A listbox with a checkbox to the left of each item
wxChoice Choice control (a combobox without the editable area)
wxComboBox A choice with an editable area
wxGauge A control to represent a varying quantity, such as time remaining
wxStaticBox A static, or group box for visually grouping related controls
wxListBox A list of strings for single or multiple selection
wxListCtrl A control for displaying lists of strings and/or icons, plus a multicolumn report view
wxTabCtrl Manages several tabs
wxTextCtrl Single or multline text editing control
wxTreeCtrl Tree (hierachy) control
wxScrollBar Scrollbar control
wxSpinButton A spin or 'up-down' control
wxStaticText One or more lines of non-editable text
wxStaticBitmap A control to display a bitmap
wxRadioBox A group of radio buttons
wxRadioButton A round button to be used with others in a mutually exclusive way
wxSlider A slider that can be dragged by the user

Menus

wxMenu Displays a series of menu items for selection
wxMenuBar Contains a series of menus for use with a frame
wxMenuItem Represents a single menu item

Window layout

Overview

These are the classes relevant to automated window layout.

wxIndividualLayoutConstraint Represents a single constraint dimension
wxLayoutConstraints Represents the constraints for a window class

Device contexts

Overview

Device contexts are surfaces that may be drawn on, and provide an abstraction that allows parameterisation of your drawing code by passing different device contexts.

wxClientDC A device context to access the client area outside OnPaint events
wxPaintDC A device context to access the client area inside OnPaint events
wxWindowDC A device context to access the non-client area
wxScreenDC A device context to access the entire screen
wxDC The device context base class
wxMemoryDC A device context for drawing into bitmaps
wxMetafileDC A device context for drawing into metafiles
wxPostScriptDC A device context for drawing into PostScript files
wxPrinterDC A device context for drawing to printers

Graphics device interface

Bitmaps overview

These classes are related to drawing on device contexts and windows.

wxColour Represents the red, blue and green elements of a colour
wxBitmap Represents a bitmap
wxBrush Used for filling areas on a device context
wxBrushList The list of previously-created brushes
wxCursor A small, transparent bitmap representing the cursor
wxFont Represents fonts
wxFontList The list of previously-created fonts
wxIcon A small, transparent bitmap for assigning to frames and drawing on device contexts
wxImage A platform-independent image class
wxImageList A list of images, used with some controls
wxMask Represents a mask to be used with a bitmap for transparent drawing
wxPen Used for drawing lines on a device context
wxPenList The list of previously-created pens
wxPalette Represents a table of indices into RGB values
wxRegion Represents a simple or complex region on a window or device context

Events

Overview

An event object contains information about a specific event. Event handlers (usually member functions) have a single, event argument.

wxActivateEvent A window or application activation event
wxCalculateLayoutEvent Used to calculate window layout
wxCloseEvent A close window or end session event
wxCommandEvent An event from a variety of standard controls
wxDropFilesEvent A drop files event
wxEraseEvent An erase background event
wxEvent The event base class
wxFocusEvent A window focus event
wxKeyEvent A keypress event
wxIdleEvent An idle event
wxInitDialogEvent A dialog initialisation event
wxJoystickEvent A joystick event
wxListEvent A list control event
wxMenuEvent A menu event
wxMouseEvent A mouse event
wxMoveEvent A move event
wxNotebookEvent A notebook control event
wxPaintEvent A paint event
wxProcessEvent A process ending event
wxQueryLayoutInfoEvent Used to query layout information
wxSizeEvent A size event
wxSocketEvent A socket event
wxSysColourChangedEvent A system colour change event
wxTabEvent A tab control event
wxTreeEvent A tree control event
wxUpdateUIEvent A user interface update event

Validators

Overview

These are the window validators, used for filtering and validating user input.

wxValidator Base validator class
wxTextValidator Text control validator class
wxGenericValidator Generic control validator class

Data structures

These are the data structure classes supported by wxWindows.

wxExpr A class for flexible I/O
wxExprDatabase A class for flexible I/O
wxDate A class for date manipulation
wxHashTable A simple hash table implementation
wxList A simple linked list implementation
wxNode Represents a node in the wxList implementation
wxObject The root class for most wxWindows classes
wxPathList A class to help search multiple paths
wxPoint Representation of a point
wxRect A class representing a rectangle
wxRegion A class representing a region
wxString A string class
wxStringList A class representing a list of strings
wxRealPoint Representation of a point using floating point numbers
wxSize Representation of a size
wxTime A class for time manipulation
wxVariant A class for storing arbitrary types that may change at run-time

Run-time class information system

Overview

wxWindows supports run-time manipulation of class information, and dynamic creation of objects given class names.

wxClassInfo Holds run-time class information
wxObject Root class for classes with run-time information
Macros Macros for manipulating run-time information

Debugging features

Overview

wxWindows supports some aspects of debugging an application through classes, functions and macros.

wxDebugContext Provides memory-checking facilities
wxLog Logging facility
Log functions Error and warning logging functions
Debugging macros Debug macros for assertion and checking
WXDEBUG_NEW Use this macro to give further debugging information

Interprocess communication

Overview

wxWindows provides a simple interprocess communications facilities based on DDE.

wxDDEClient Represents a client
wxDDEConnection Represents the connection between a client and a server
wxDDEServer Represents a server
wxTCPClient Represents a client
wxTCPConnection Represents the connection between a client and a server
wxTCPServer Represents a server
wxSocketClient Represents a socket client
wxSocketHandler Represents a socket handler
wxSocketServer Represents a socket server

Document/view framework

Overview

wxWindows supports a document/view framework which provides housekeeping for a document-centric application.

wxDocument Represents a document
wxView Represents a view
wxDocTemplate Manages the relationship between a document class and a veiw class
wxDocManager Manages the documents and views in an application
wxDocChildFrame A child frame for showing a document view
wxDocParentFrame A parent frame to contain views

Printing framework

Overview

A printing and previewing framework is implemented to make it relatively straighforward to provide document printing facilities.

wxPreviewFrame Frame for displaying a print preview
wxPreviewCanvas Canvas for displaying a print preview
wxPreviewControlBar Standard control bar for a print preview
wxPrintData Represents information about the document being printed
wxPrintDialog Standard print dialog
wxPrinter Class representing the printer
wxPrinterDC Printer device context
wxPrintout Class representing a particular printout
wxPrintPreview Class representing a print preview

Database classes

Database classes overview

wxWindows provides two alternative sets of classes for accessing Microsoft's ODBC (Open Database Connectivity) product. The new version by Remstar is documented in a separate manual. The older classes are as follows:

wxDatabase Database class
wxQueryCol Class representing a column
wxQueryField Class representing a field
wxRecordSet Class representing one or more record

Drag and drop and clipboard classes

Drag and drop and clipboard overview

wxDataObject Data object class
wxTextDataObject Text data object class
wxFileDataObject File data object class
wxBitmapDataObject Bitmap data object class
wxPrivateDataObject Private data object class
wxClipboard Clipboard class
wxDropTarget Drop target class
wxFileDropTarget File drop target class
wxTextDropTarget Text drop target class
wxDropSource Drop source class

File related classes

wxWindows has several small classes to work with disk files, see file classes overview for more details.

wxFile Low-level file input/output
wxTempFile Class to safely replace an existing file
wxTextFile Class for working with text files as with arrays of lines

Stream classes

wxWindows has its own set of stream classes, as an alternative to often buggy standard stream libraries, and to provide enhanced functionality.

wxStreamBase Stream base class
wxStreamBuffer Stream buffer class
wxInputStream Input stream class
wxOutputStream Output stream class
wxFilterInputStream Filtered input stream class
wxFilterOutputStream Filtered output stream class
wxDataInputStream Platform-independent data input stream class
wxDataOutputStream Platform-independent data output stream class
wxFileInputStream File input stream class
wxFileOutputStream File output stream class
wxZlibInputStream Zlib (compression) input stream class
wxZlibOutputStream Zlib (compression) output stream class
wxSocketInputStream Socket input stream class
wxSocketOutputStream Socket output stream class

Miscellaneous

wxAcceleratorTable Accelerator table
wxApp Application class
wxAutomationObject OLE automation class
wxConfig Classes for configuration reading/writing
wxHelpController Family of classes for controlling help windows
wxLayoutAlgorithm An alternative window layout facility
wxProcess Process class
wxTimer Timer class
wxSystemSettings System settings class