Go to file
Vadim Zeitlin e3ec9fb124 Fix using wxMemoryDC without a GUI wxApp instance
This used to work, at least in wxMSW, but stopped working after the
(perfectly valid, on their own) changes of 2508efdd6e (Initialize
wxMemoryDC with a default font, 2019-08-13), as this resulted in calling
wxApp::GetTopWindow() that can only be called from the GUI code.

Fix this by adding wxApp::GetGUIInstance() and using it in
GetMainTopWindow(), so that we only call GetTopWindow() if we actually
have a GUI wxApp object on which to call it.

Implement this in terms of a new virtual IsGUI() which seems slightly
better than, although roughly equivalent to, using wxDynamicCast().

Closes https://github.com/wxWidgets/wxWidgets/pull/2617

Closes #19343.
2021-12-14 19:28:02 +00:00
.github Reenable cmake install step for Windows builds 2021-12-10 18:00:38 +01:00
3rdparty Merge latest Catch v1.x branch into our version 2021-12-02 15:11:04 +01:00
art
build Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
demos Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
distrib Remove setup0.h files 2021-01-31 19:02:56 +01:00
docs Update install notes with instructions for building using Xcode 2021-12-01 23:28:38 +01:00
include Fix using wxMemoryDC without a GUI wxApp instance 2021-12-14 19:28:02 +00:00
interface Fix using wxMemoryDC without a GUI wxApp instance 2021-12-14 19:28:02 +00:00
lib Add support for PCRE2 for OpenVMS 2021-08-20 10:00:17 +02:00
locale Fix errors and inconsistent terms in zh_TW translations 2021-07-19 14:46:51 +02:00
misc Ignore commit only removing white space for git blame purposes 2021-11-29 13:58:52 +01:00
samples Merge branch 'wxlistctrl-sort' of https://github.com/MaartenBent/wxWidgets 2021-12-09 21:29:39 +01:00
src Fix using wxMemoryDC without a GUI wxApp instance 2021-12-14 19:28:02 +00:00
tests Enable long path normalization test by default 2021-12-10 17:27:06 +01:00
utils Mark MSVS *.vcxproj.filters files as using CR LF as well 2021-11-24 12:13:12 +01:00
.editorconfig
.gitattributes Mark MSVS *.vcxproj.filters files as using CR LF as well 2021-11-24 12:13:12 +01:00
.gitignore updating gitignore, adding workspace to wxcocoa_in 2021-11-22 18:03:06 +01:00
.gitmodules Add simple wxBitmapBundle::FromSVG() implementation using NanoSVG 2021-10-05 16:06:43 +01:00
.mailmap Use consistent name for Konstantin S. Matveyev in git log 2020-05-25 01:48:43 +02:00
acinclude.m4
aclocal.m4 Pass options needed by it to libtiff configure only 2020-07-18 16:59:48 +02:00
appveyor.yml Remove TravisCI mentions from build scripts 2021-07-15 13:53:12 +02:00
autoconf_inc.m4 Make wxrc independent from GUI support 2021-08-06 21:51:11 +02:00
autogen.sh
CMakeLists.txt CMake: update Info.plist variables 2021-08-17 22:33:45 +02:00
config.guess Update config.{guess,sub} scripts to latest versions 2021-03-17 09:53:58 -07:00
config.sub Update config.{guess,sub} scripts to latest versions 2021-03-17 09:53:58 -07:00
configure Fix description of wxUSE_SPELLCHECK option in configure and CMake 2021-10-17 19:36:56 +02:00
configure.in Fix description of wxUSE_SPELLCHECK option in configure and CMake 2021-10-17 19:36:56 +02:00
descrip.mms workaround for which is probably a compiler-bug on OpenVMS-AXP 2021-01-07 09:47:46 +01:00
install-sh
Makefile.in Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
mkinstalldirs
README-GIT.md Remove setup0.h files 2021-01-31 19:02:56 +01:00
README.md Use different badges for different GitHub CI workflows 2021-08-28 23:50:55 +02:00
regen
setup.h_vms Add wxUSE_SPELLCHECK to setup for OpenVMS 2021-09-22 08:44:01 +02:00
setup.h.in Always set wxUSE_SPELLCHECK to 1 by default for simplicity 2021-08-23 14:16:16 +02:00
version-script.in
wx-config-inplace.in
wx-config.in Fix wx-config --libs output for static monolithic build 2021-08-25 23:31:45 +02:00
wxwidgets.props Support for VS 2022 in wxwidgets.props 2021-09-27 14:21:28 +02:00
wxwin.m4 Change wxwin.m4 to use non-deprecated macros 2021-11-12 17:13:34 +01:00

About

wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls.

wxWidgets Logo

wxWidgets allows you to write native-looking GUI applications for all the major desktop platforms and also helps with abstracting the differences in the non-GUI aspects between them. It is free for the use in both open source and commercial applications, comes with the full, easy to read and modify, source and extensive documentation and a collection of more than a hundred examples. You can learn more about wxWidgets at https://www.wxwidgets.org/ and read its documentation online at https://docs.wxwidgets.org/

Platforms

AppVeyor Unix (make) Unix (CMake) MSW (MSVC) MSW (gcc) Mac OSS-Fuzz

This version of wxWidgets supports the following primary platforms:

  • Windows XP, Vista, 7, 8 and 10 (32/64 bits).
  • Most Unix variants using the GTK+ toolkit (version 2.6 or newer or 3.x).
  • macOS (10.10 or newer) using Cocoa under both amd64 and ARM platforms.

Most popular C++ compilers are supported including but not limited to:

  • Microsoft Visual C++ 2005 or later (up to 2022).
  • g++ 4 or later, including MinGW/MinGW-64/TDM under Windows.
  • Clang under macOS and Linux.
  • Intel icc compiler.
  • Oracle (ex-Sun) CC.

Licence

wxWidgets licence is a modified version of LGPL explicitly allowing not distributing the sources of an application using the library even in the case of static linking.

Building

For building the library, please see platform-specific documentation under docs/<port> directory, e.g. here are the instructions for wxGTK, wxMSW and wxOSX.

If you're building the sources checked out from Git, and not from a released version, please see these additional Git-specific notes.

Further information

If you are looking for community support, you can get it from

Commercial support is also available.

Finally, keep in mind that wxWidgets is an open source project collaboratively developed by its users and your contributions to it are always welcome. Please check our guidelines if you'd like to do it.

Have fun!

The wxWidgets Team.