No description
Find a file
Vadim Zeitlin 53b4f4ddf2 Use physical size in wxImageList
This seems to be the only way to fix using this class, which is
fundamentally incompatible with high DPI support, with bitmaps of
different logical but identical physical sizes.

By using physical size we ensure that the code chopping up the provided
bitmap in multiple images doesn't do it with the bitmap having the same
physical size but a different logical size from all the other bitmaps.
And, conceptually, logical size of the bitmaps in it really shouldn't
matter to the image list as it doesn't have a scaling factor and so
can't do anything useful with the logical size.

Moreover, we can't add wxImageList::SetScaleFactor() neither because
this class is, by design, supposed to be shareable between different
controls which may use different scale factors, so it doesn't make sense
to speak of the scale factor of the image list itself.

This undoes the changes made in the generic implementation back in
c374eefd34 (Fold wxOSX-specific wxImageList into generic version,
2018-10-30) and also eb52e86553 (Take into account scale factor of
images added to wxImageList, 2021-04-03).

Also update a couple of places where wxImageList is still used to use
physical sizes. Unfortunately some others can't be easily fixed, e.g.
global wxFileIconsTable would have to be completely rewritten.

Finally, add a unit test checking that things work as expected now:
previously the size of 24x24 bitmap in the image list containing
(scaled) 32x32 bitmaps would be 21x21 due to sub-bitmap extraction
kicking in.

Closes #23994.
2023-11-06 21:18:34 +01:00
.circleci Update Circle CI workflow to get Scintilla submodules 2023-02-20 18:43:35 +01:00
.github Check running the GUI test without GUI in Unix CI builds 2023-10-24 01:21:22 +02: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 Remove all blank "Modified by:" lines from top comment blocks 2023-10-22 01:22:48 +02: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 Use physical size in wxImageList 2023-11-06 21:18:34 +01:00
include Use physical size in wxImageList 2023-11-06 21:18:34 +01:00
interface Use physical size in wxImageList 2023-11-06 21:18:34 +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 buttons missing in widgets sample after recent changes 2023-10-29 02:47:46 +02:00
src Use physical size in wxImageList 2023-11-06 21:18:34 +01:00
tests Use physical size in wxImageList 2023-11-06 21:18:34 +01:00
utils Remove all blank "Modified by:" lines from top comment blocks 2023-10-22 01:22:48 +02: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 another commit only removing wxT() for git-blame purposes 2023-10-22 17:39:30 +02: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 Now wxTimePickerCtrl is a native control under wxQt 2023-10-15 13:35:24 +01:00
mkinstalldirs Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
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 Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
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 Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
wx-config-inplace.in Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
wx-config.in Only include Scintilla libraries in wx-config --libs if needed 2023-07-23 02:35:53 +02:00
wxwidgets.props Check that Unicode is enabled in wxwidgets.props 2022-10-28 18:27:17 +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.