Vadim Zeitlin
e6777e6575
Add wx{Pen,Brush}::Is[Non]Transparent() methods and use them.
...
Using GetStyle() == wx{PEN,BRUSH}STYLE_TRANSPARENT doesn't work for
uninitialized pen or brush objects so add convenient helpers which do work for
them.
Use the new helper functions everywhere instead of explicitly checking for
style. This makes the code shorter and more clear and also fixes some bugs (at
least those in GTK printing code).
Notice that this patch removes the main reason for explicitly initializing
m_pen and m_brush in wxGTKDCImpl ctor but this initialization still can't be
removed, at least for the latter, as doing this somehow breaks GetPixel(). It
would be nice to understand why and do remove this initialization so that a
newly created DC doesn't have any non-default pen nor brush.
Closes #12522 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-10-15 23:46:46 +00:00
..
2010-07-25 09:54:18 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 22:16:05 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-24 14:47:20 +00:00
2010-07-13 13:29:13 +00:00
2010-09-29 13:46:35 +00:00
2010-08-22 22:16:05 +00:00
2010-07-13 13:29:13 +00:00
2010-10-05 06:17:22 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 22:16:05 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 22:16:05 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-10-15 23:46:46 +00:00
2010-08-06 20:14:39 +00:00
2010-07-13 13:29:13 +00:00
2010-08-11 16:03:46 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 11:24:38 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 22:16:05 +00:00
2010-08-17 14:48:50 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-22 12:09:15 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-13 20:12:57 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-26 22:11:21 +00:00
2010-07-13 13:29:13 +00:00
2010-07-23 23:32:52 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 11:26:04 +00:00
2010-09-11 10:18:41 +00:00
2010-08-30 21:48:16 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-11 10:19:14 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 23:45:58 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-29 13:46:09 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-22 12:08:45 +00:00
2010-07-13 13:29:13 +00:00
2009-10-22 11:35:43 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-11 16:03:51 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-30 22:18:52 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-17 16:55:32 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-22 08:48:15 +00:00
2010-07-25 13:23:30 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-10-01 13:05:42 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2009-12-20 15:07:08 +00:00
2010-07-13 13:29:13 +00:00
2010-09-04 09:36:25 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 11:24:38 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-10-15 23:46:46 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 11:24:38 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-10 17:26:03 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-10 18:57:36 +00:00
2010-08-18 21:36:40 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-18 22:48:41 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 19:45:24 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 19:45:24 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-27 11:57:03 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-27 11:51:50 +00:00
2009-05-03 09:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-09-15 22:10:26 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-10-01 13:05:36 +00:00
2010-07-25 13:55:36 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-15 21:14:11 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 22:16:05 +00:00
2010-07-13 13:29:13 +00:00
2010-08-22 22:15:42 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2008-10-28 14:29:36 +00:00
2010-10-03 17:16:09 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-22 12:09:20 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 19:45:24 +00:00
2010-07-13 13:29:13 +00:00
2010-09-30 14:33:53 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00