- wxWindow
Constructs a window, which can be a child of a frame, dialog or any other non-control window.
- AcceptsFocus
This method may be overridden in the derived classes to return false to indicate that this control doesn't accept input at all (i.e. behaves like e.g. wxStaticText) and so doesn't need focus.
- AcceptsFocusFromKeyboard
This method may be overridden in the derived classes to return false to indicate that while this control can, in principle, have focus if the user clicks it with the mouse, it shouldn't be included in the TAB traversal chain when using the keyboard.
- AcceptsFocusRecursively
Overridden to indicate whether this window or one of its children accepts focus.
- AddChild
Adds a child window.
- AddPendingEvent
See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow.
- AlwaysShowScrollbars
Call this function to force one or both scrollbars to be always shown, even if the window is big enough to show its entire contents without scrolling.
- CacheBestSize
Sets the cached best size value.
- CanScroll
Returns true if this window can have a scroll bar in this orientation.
- CanSetTransparent
Returns true if the system supports transparent windows and calling SetTransparent() may succeed.
- CaptureMouse
Directs all mouse input to this window.
- Center
A synonym for Centre().
- CenterOnParent
A synonym for CentreOnParent().
- Centre
Centres the window.
- CentreOnParent
Centres the window on its parent.
- ClearBackground
Clears the window by filling it with the current background colour.
- ClientToScreen
Converts to screen coordinates from coordinates relative to this window.
- ClientToWindowSize
Converts client area size size to corresponding window size.
- Close
This function simply generates a wxCloseEvent whose handler usually tries to close the window.
- ConvertDialogToPixels
Converts a point or size from dialog units to pixels.
- ConvertPixelsToDialog
Converts a point or size from pixels to dialog units.
- Create
- Destroy
Destroys the window safely.
- DestroyChildren
Destroys all children of a window.
- Disable
Disables the window.
- DoUpdateWindowUI
Does the window-specific updating after processing the update event.
- DragAcceptFiles
Enables or disables eligibility for drop file events (OnDropFiles).
- Enable
Enable or disable the window for user input.
- FindWindow
Find a child of this window, by name.
- Fit
Sizes the window so that it fits around its subwindows.
- FitInside
Similar to Fit(), but sizes the interior (virtual) size of a window.
- Freeze
Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all.
- GetAutoLayout
Returns the sizer of which this window is a member, if any, otherwise NULL.
- GetBackgroundColour
Returns the background colour of the window.
- GetBackgroundStyle
Returns the background style of the window.
- GetBestSize
This functions returns the best acceptable minimal size for the window.
- GetBestVirtualSize
Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means)
- GetBorder
Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable.
- GetCaret
Returns the caret() associated with the window.
- GetCharHeight
Returns the character height for this window.
- GetCharWidth
Returns the average character width for this window.
- GetClientAreaOrigin
Get the origin of the client area of the window relative to the window top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...)
- GetClientRect
Get the client rectangle in window (i.e. client) coordinates.
- GetClientSize
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- GetContainingSizer
Returns the sizer of which this window is a member, if any, otherwise NULL.
- GetCursor
Return the cursor associated with this window.
- GetEffectiveMinSize
Merges the window's best size into the min size and returns the result.
- GetEventHandler
Returns the event handler for this window.
- GetExtraStyle
Returns the extra style bits for the window.
- GetFont
Returns the font for this window.
- GetForegroundColour
Returns the foreground colour of the window.
- GetGrandParent
Returns the grandparent of a window, or NULL if there isn't one.
- GetHelpText
Gets the help text to be used as context-sensitive help for this window.
- GetHelpTextAtPoint
Gets the help text to be used as context-sensitive help for this window.
- GetId
Returns the identifier of the window.
- GetLabel
Generic way of getting a label from any window, for identification purposes.
- GetLayoutDirection
Returns the layout direction for this window, Note that wxLayout_Default is returned if layout direction is not supported.
- GetMaxClientSize
Returns the maximum size of window's client area.
- GetMaxHeight
Returns the vertical component of window maximal size.
- GetMaxSize
Returns the maximum size of the window.
- GetMaxWidth
Returns the horizontal component of window maximal size.
- GetMinClientSize
Returns the minimum size of window's client area, an indication to the sizer layout mechanism that this is the minimum required size of its client area.
- GetMinHeight
Returns the vertical component of window minimal size.
- GetMinSize
Returns the minimum size of the window, an indication to the sizer layout mechanism that this is the minimum required size.
- GetMinWidth
Returns the horizontal component of window minimal size.
- GetName
Returns the window's name.
- GetNextSibling
Returns the next window after this one among the parent's children or NULL if this window is the last child.
- GetParent
Returns the parent of the window, or NULL if there is no parent.
- GetPopupMenuSelectionFromUser
This function shows a popup menu at the given position in this window and returns the selected id.
- GetPosition
This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
- GetPrevSibling
Returns the previous window before this one among the parent's children or NULL if this window is the first child.
- GetRect
Returns the position and size of the window as a wxRect object.
- GetScreenPosition
Returns the window position in screen coordinates, whether the window is a child window or a top level one.
- GetScreenRect
Returns the position and size of the window on the screen as a wxRect object.
- GetScrollPos
Returns the built-in scrollbar position.
- GetScrollRange
Returns the built-in scrollbar range.
- GetScrollThumb
Returns the built-in scrollbar thumb size.
- GetSize
See the GetSize(int*,int*) overload for more info.
- GetSizer
Returns the sizer associated with the window by a previous call to SetSizer(), or NULL.
- GetTextExtent
Gets the dimensions of the string as it would be drawn on the window with the currently selected font.
- GetToolTip
Get the associated tooltip or NULL if none.
- GetToolTipText
Get the text of the associated tooltip or empty string if none.
- GetUpdateClientRect
Get the update rectangle bounding box in client coords.
- GetUpdateRegion
Returns the region specifying which parts of the window have been damaged.
- GetValidator
Validator functions.
- GetVirtualSize
This gets the virtual size of the window in pixels.
- GetWindowBorderSize
Returns the size of the left/right and top/bottom borders of this window in x and y components of the result respectively.
- GetWindowStyle
See GetWindowStyleFlag() for more info.
- GetWindowStyleFlag
Gets the window style that was passed to the constructor or Create() method.
- GetWindowVariant
Returns the value previously passed to SetWindowVariant().
- HandleAsNavigationKey
This function will generate the appropriate call to Navigate() if the key event is one normally used for keyboard navigation and return true in this case.
- HandleWindowEvent
Shorthand for:
- HasCapture
Returns true if this window has the current mouse capture.
- HasExtraStyle
Returns true if the window has the given exFlag bit set in its extra styles.
- HasFlag
Returns true if the window has the given flag bit set.
- HasFocus
Returns true if the window (or in case of composite controls, its main child window) has focus.
- HasMultiplePages
This method should be overridden to return true if this window has multiple pages.
- HasScrollbar
Returns true if this window currently has a scroll bar for this orientation.
- HasTransparentBackground
Returns true if this window background is transparent (as, for example, for wxStaticText) and should show the parent window background.
- Hide
Equivalent to calling wxWindow::Show(false).
- HitTest
Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable.
- InformFirstDirection
wxSizer and friends use this to give a chance to a component to recalc its min size once one of the final size components is known.
- InheritAttributes
This function is (or should be, in case of custom controls) called during window creation to intelligently set up the window visual attributes, that is the font and the foreground and background colours.
- InitDialog
Sends an wxEVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators.
- InvalidateBestSize
Resets the cached best size value so it will be recalculated the next time it is needed.
- IsBeingDeleted
Returns true if this window is in process of being destroyed.
- IsDoubleBuffered
Returns true if the window contents is double-buffered by the system, i.e. if any drawing done on the window is really done on a temporary backing surface and transferred to the screen all at once later.
- IsEnabled
Returns true if the window is enabled, i.e. if it accepts user input, false otherwise.
- IsExposed
Returns true if the given point or rectangle area has been exposed since the last repaint.
- IsFrozen
Returns true if the window is currently frozen by a call to Freeze().
- IsRetained
Returns true if the window is retained, false otherwise.
- IsScrollbarAlwaysShown
Return whether a scrollbar is always shown.
- IsShown
Returns true if the window is shown, false if it has been hidden.
- IsShownOnScreen
Returns true if the window is physically visible on the screen, i.e. it is shown and all its parents up to the toplevel window are shown as well.
- IsThisEnabled
Returns true if this window is intrinsically enabled, false otherwise, i.e. if Enable() Enable(false) had been called.
- IsTopLevel
Returns true if the given window is a top-level one.
- Layout
Invokes the constraint-based layout algorithm or the sizer-based algorithm for this window.
- LineDown
Same as ScrollLines (1).
- LineUp
Same as ScrollLines (-1).
- Lower
Lowers the window to the bottom of the window hierarchy (Z-order).
- Move
Moves the window to the given position.
- MoveAfterInTabOrder
Moves this window in the tab navigation order after the specified win.
- MoveBeforeInTabOrder
Same as MoveAfterInTabOrder() except that it inserts this window just before win instead of putting it right after it.
- Navigate
Performs a keyboard navigation action starting from this window.
- NavigateIn
Performs a keyboard navigation action inside this window.
- OnInternalIdle
This virtual function is normally only used internally, but sometimes an application may need it to implement functionality that should not be disabled by an application defining an OnIdle handler in a derived class.
- PageDown
Same as ScrollPages (1).
- PageUp
Same as ScrollPages (-1).
- PopupMenu
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu.
- PostSizeEvent
Posts a size event to the window.
- PostSizeEventToParent
Posts a size event to the parent of this window.
- ProcessEvent
This function is public in wxEvtHandler but protected in wxWindow because for wxWindows you should always call ProcessEvent() on the pointer returned by GetEventHandler() and not on the wxWindow object itself.
- ProcessWindowEvent
Convenient wrapper for ProcessEvent().
- ProcessWindowEventLocally
Wrapper for wxEvtHandler::ProcessEventLocally().
- PushEventHandler
Pushes this event handler onto the event stack for the window.
- QueueEvent
See ProcessEvent() for more info about why you shouldn't use this function and the reason for making this function protected in wxWindow.
- Raise
Raises the window to the top of the window hierarchy (Z-order).
- Refresh
Causes this window, and all of its children recursively (except under wxGTK1 where this is not implemented), to be repainted.
- RefreshRect
Redraws the contents of the given rectangle: only the area inside it will be repainted.
- ReleaseMouse
Releases mouse input captured with CaptureMouse().
- RemoveChild
Removes a child window.
- RemoveEventHandler
Find the given handler in the windows event handler stack and removes (but does not delete) it from the stack.
- Reparent
Reparents the window, i.e. the window will be removed from its current parent window (e.g.
- ScreenToClient
Converts from screen to client window coordinates.
- ScrollLines
Scrolls the window by the given number of lines down (if lines is positive) or up.
- ScrollPages
Scrolls the window by the given number of pages down (if pages is positive) or up.
- SendSizeEvent
This function sends a dummy size event to the window allowing it to re-layout its children positions.
- SendSizeEventToParent
Safe wrapper for GetParent()->SendSizeEvent().
- SetAutoLayout
Determines whether the Layout() function will be called automatically when the window is resized.
- SetBackgroundColour
Sets the background colour of the window.
- SetBackgroundStyle
Sets the background style of the window.
- SetCanFocus
This method is only implemented by ports which have support for native TAB traversal (such as GTK+ 2.0).
- SetCaret
Sets the caret() associated with the window.
- SetClientSize
This sets the size of the window client area in pixels.
- SetConstraints
Sets the window to have the given layout constraints.
- SetContainingSizer
This normally does not need to be called by user code.
- SetCursor
Sets the window's cursor.
- SetDropTarget
Associates a drop target with this window.
- SetEventHandler
Sets the event handler for this window.
- SetExtraStyle
Sets the extra style bits for the window.
- SetFocus
This sets the window to receive keyboard input.
- SetFocusFromKbd
This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard (e.g.
- SetFont
Sets the font for this window.
- SetForegroundColour
Sets the foreground colour of the window.
- SetHelpText
Sets the help text to be used as context-sensitive help for this window.
- SetId
Sets the identifier of the window.
- SetInitialBestSize
Sets the initial window size if none is given (i.e. at least one of the components of the size passed to ctor/Create() is wxDefaultCoord).
- SetInitialSize
A smart SetSize that will fill in default size components with the window's best size values.
- SetLabel
Sets the window's label.
- SetLayoutDirection
Sets the layout direction for this window.
- SetMaxClientSize
Sets the maximum client size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size of its client area.
- SetMaxSize
Sets the maximum size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size.
- SetMinClientSize
Sets the minimum client size of the window, to indicate to the sizer layout mechanism that this is the minimum required size of window's client area.
- SetMinSize
Sets the minimum size of the window, to indicate to the sizer layout mechanism that this is the minimum required size.
- SetName
Sets the window's name.
- SetNextHandler
wxWindows cannot be used to form event handler chains; this function thus will assert when called.
- SetOwnBackgroundColour
Sets the background colour of the window but prevents it from being inherited by the children of this window.
- SetOwnFont
Sets the font of the window but prevents it from being inherited by the children of this window.
- SetOwnForegroundColour
Sets the foreground colour of the window but prevents it from being inherited by the children of this window.
- SetPalette
- SetPosition
A synonym for Centre().
- SetPreviousHandler
wxWindows cannot be used to form event handler chains; this function thus will assert when called.
- SetScrollPos
Sets the position of one of the built-in scrollbars.
- SetScrollbar
Sets the scrollbar properties of a built-in scrollbar.
- SetSize
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- SetSizeHints
Prepare for changing positions of multiple child windows.
- SetSizer
Sets the window to have the given layout sizer.
- SetSizerAndFit
This method calls SetSizer() and then wxSizer::SetSizeHints which sets the initial window size to the size needed to accommodate all sizer elements and sets the size hints which, if this window is a top level one, prevent the user from resizing it to be less than this minimal size.
- SetThemeEnabled
This function tells a window if it should use the system's "theme" code to draw the windows' background instead of its own background drawing code.
- SetToolTip
Attach a tooltip to the window.
- SetTransparent
Set the transparency of the window.
- SetValidator
Deletes the current validator (if any) and sets the window validator, having called wxValidator::Clone to create a new validator of this type.
- SetVirtualSize
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- SetWindowStyle
See SetWindowStyleFlag() for more info.
- SetWindowStyleFlag
Sets the style of the window.
- SetWindowVariant
This function can be called under all platforms but only does anything under Mac OS X 10.3+ currently.
- ShouldInheritColours
Return true from here to allow the colours of this window to be changed by InheritAttributes().
- Show
Shows or hides the window.
- Thaw
Re-enables window updating after a previous call to Freeze().
- ToggleWindowStyle
Turns the given flag on if it's currently turned off and vice versa.
- TransferDataFromWindow
Transfers values from child controls to data areas specified by their validators.
- TransferDataToWindow
Transfers values to child controls from data areas specified by their validators.
- UnsetToolTip
Unset any existing tooltip.
- Update
Calling this method immediately repaints the invalidated area of the window and all of its children recursively (this normally only happens when the flow of control returns to the event loop).
- UpdateWindowUI
This function sends one or more wxUpdateUIEvent to the window.
- Validate
Validates the current values of the child controls using their validators.
- WarpPointer
Moves the pointer to the given position on the window.
- WindowToClientSize
Converts window size size to corresponding client area size In other words, the returned value is what would GetClientSize() return if this window had given window size.