No description
Find a file
Vadim Zeitlin 0999976f6d Fix using wxImageList in wxTreeCtrl in wxGTK in high DPI
The icons positioning was broken by 53b4f4ddf2 (Use physical size in
wxImageList, 2023-11-03) because the logical size was calculated
incorrectly in the case when wxImageList was used for the icons and
ended up being 8x8 for 16x16 icons when using 200% scaling, which was
clearly wrong and resulted in the icons not fitting in the space
allocated for them because they actually took 32x32 physical pixels due
to scaling of all bitmaps from wxImageList.

Fix this by correctly taking account of the window DPI scale factor.
This is a bit roundabout because using FromPhys() later just undoes
this, but it allows to keep using the same code when using wxImageList
and wxBitmapBundle for storing bitmaps and so is simpler.

Note that we must only do this when wxImageList was provided by the
user, i.e. with the legacy code, but not when it was created internally
in addition to wxBitmapBundle, as in this case we recreate it on DPI
change using the correct, DPI-adjusted size, already, so restrict this
scaling to the case when we don't have wxBitmapBundle only.

This commit is best viewed ignoring whitespace-only changes.
2023-12-11 01:47:10 +01:00
.circleci Update Circle CI workflow to get Scintilla submodules 2023-02-20 18:43:35 +01:00
.github Merge branch 'improve-bug-report' 2023-11-17 01:22:08 +01:00
3rdparty Synchronize config.* files in submodules with top-level repository 2023-07-27 17:14:48 +02:00
art Remove support for wxMotif 2022-10-16 16:39:56 +02:00
build Merge branch 'qt-overlay' of https://github.com/AliKet/wxWidgets 2023-12-03 15:00:34 +01:00
demos Remove all blank "Modified by:" lines from top comment blocks 2023-10-22 01:22:48 +02:00
distrib Remove all blank "Modified by:" lines from top comment blocks 2023-10-22 01:22:48 +02:00
docs Clarify description of archive contents in wxMSW binaries docs 2023-11-30 02:43:52 +01:00
include Fix using wxImageList in wxTreeCtrl in wxGTK in high DPI 2023-12-11 01:47:10 +01:00
interface Add Catholic Feasts holiday authority class (US observances) 2023-12-05 00:53:26 +01:00
lib Add support for PCRE2 for OpenVMS 2021-08-20 10:00:17 +02:00
locale Update Japanese translation 2023-10-03 22:57:50 +09:00
misc Remove configure.in to configure.ac 2023-07-24 00:11:26 +02:00
samples Fix wxStatusBar with field controls under wxQt 2023-12-07 17:20:00 +01:00
src Incorporate GTK preferred size into best size for non-native controls 2023-12-09 18:17:53 -08:00
tests Add Catholic Feasts holiday authority class (US observances) 2023-12-05 00:53:26 +01:00
utils Fix typos and repeated words in comments and documentation 2023-11-30 02:21:34 +01:00
.cirrus.yml CI: ignore CircleCI config files from all other CIs 2023-04-04 15:28:34 +02:00
.editorconfig Revert changes in Editor Config file made by mistake in 5fbe3cab 2018-11-01 18:37:34 +01:00
.git-blame-ignore-revs Ignore NULL to nullptr change in git blame output 2023-11-17 00:38:33 +01:00
.gitattributes Remove configure.in to configure.ac 2023-07-24 00:11:26 +02:00
.gitignore Remove frozen autoconf macros version a.k.a. "auto hacks" 2023-07-24 00:11:26 +02:00
.gitmodules Add scintilla and Lexilla submodules 2023-02-14 22:43:17 +01:00
.mailmap Add mailmap entry for Hans Mackowiak 2023-08-25 17:23:38 +02:00
acinclude.m4 Remove configure.in to configure.ac 2023-07-24 00:11:26 +02:00
aclocal.m4 Replace AM_PATH_GTK_N_0() macros with use of PKG_CHECK_MODULES() 2023-07-24 00:00:18 +02:00
appveyor.yml Remove wxUSE_STL which is not really used any longer 2023-04-15 17:22:09 +02:00
autoconf_inc.m4 Rebake after the previous commit 2023-07-29 18:13:29 +02:00
autogen.sh Remove frozen autoconf macros version a.k.a. "auto hacks" 2023-07-24 00:11:26 +02:00
CMakeLists.txt Update copyright years to 2023 2023-01-03 04:15:08 +01:00
config.guess Update config.{guess,sub} scripts to latest versions 2022-12-02 08:43:11 -08:00
config.sub Update config.{guess,sub} scripts to latest versions 2022-12-02 08:43:11 -08:00
configure Use dl_iterate_phdr() in wxDynamicLibrary::ListLoaded() 2023-09-06 00:40:11 +02:00
configure.ac Use dl_iterate_phdr() in wxDynamicLibrary::ListLoaded() 2023-09-06 00:40:11 +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 Added native wxOverlay implementation under wxQt 2023-11-23 22:49:15 +01:00
mkinstalldirs
README-GIT.md Add a note about updating submodules to Git README too 2022-08-04 02:30:25 +02:00
README.md Update maximum supported compiler versions in main readme 2023-08-24 15:05:03 +02:00
regen
setup.h.in Use dl_iterate_phdr() in wxDynamicLibrary::ListLoaded() 2023-09-06 00:40:11 +02:00
setup.h_vms Assume sigaction::sa_handler always takes "int" 2023-06-30 00:26:19 +01:00
version-script.in
wx-config-inplace.in
wx-config.in Only include Scintilla libraries in wx-config --libs if needed 2023-07-23 02:35:53 +02:00
wxwidgets.props Remove obsolete options from MSVS .props files 2023-11-30 02:52:25 +01:00
wxwin.m4 Remove configure.in to configure.ac 2023-07-24 00:11:26 +02: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 7, 8, 10 and 11 (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.

All C++11 compilers are supported including but not limited to:

  • Microsoft Visual C++ 2015 or later (up to 2022).
  • g++ 4.8 or later (up to 13), including MinGW/MinGW-64/TDM under Windows.
  • Clang (up to 16).

Please use 3.2 branch if you must use wxWidgets with a C++98 compiler or support Windows XP.

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.