Commit Graph

166 Commits

Author SHA1 Message Date
Vadim Zeitlin
17808a7596 move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently (i.e. recursively, as described in the docs) in all ports; removed different duplications of freeze count from derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-05 00:21:31 +00:00
Stefan Csomor
a1657b633e changing to wxDC, so that wxGCDC can be used as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 09:16:57 +00:00
Václav Slavík
46c7e1a120 implemented wxExecute() for wxDFB; share the implementation with wxX11
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 18:52:55 +00:00
Václav Slavík
4eba3923cc fixes for the case when only epoll() based wxFDIODispatcher is available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-18 16:10:13 +00:00
Václav Slavík
82452a17ff convert wxImage's mask into alpha channel in wxDFB's wxBitmap for now, until full wxMask support is implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-16 18:10:48 +00:00
Vadim Zeitlin
8f884a0dcc Fix Ok/IsOk() mess in wxGDIObject-derived classes; also added
wxGDIObject::Create/CloneGDIRefData() and implemented them for (almost) all
ports


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-15 17:54:20 +00:00
Vadim Zeitlin
4a624f6ed3 fixed wxDFB compilation after wxDC-related changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-14 22:41:07 +00:00
Vadim Zeitlin
1ecd8ca468 compilation fix: need to include wx/thread.h now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-14 17:15:30 +00:00
Václav Slavík
937013e0fd 1. added wxEvtHandler::SafelyProcessEvent() and wxWindow::HandleWindowEvent() to correctly handle exceptions in even handlers in wxGTK
2. use HandleWindowEvent() everywhere as more obvious and convenient shortcut for GetEventHandler()->ProcessEvent(); also for consistency with wxGTK where it's required

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 17:00:58 +00:00
Vadim Zeitlin
e256b53a3d remove wxWindow::Clear() from wxDFB and wxMGL which was unused (probably replaced by ClearBackground()) and conflicted with methods with the same name in other classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 18:22:15 +00:00
Julian Smart
24bd6cb9df Optimized update events by only sending them to visible windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 10:51:31 +00:00
Václav Slavík
a5001e9361 don't use _T() for literals in wxDFB, it uses UTF-8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 10:15:42 +00:00
Vadim Zeitlin
5770bfeb87 compilation fix for wxUSE_LOG==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 21:15:21 +00:00
Václav Slavík
92d912a2c9 support real transparency for controls that return HasTransparentBackground() in wxDFB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 18:57:40 +00:00
Václav Slavík
0c8ae72029 convert bitmap's surface to RGB24/ARGB in wxBitmap::GetRawData() if it uses different format
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-15 10:05:09 +00:00
Václav Slavík
5fe050c360 added support for custom bitmap depths
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-10 19:02:12 +00:00
Václav Slavík
c3ee702552 implemented raw bitmap access for wxDFB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-10 16:49:19 +00:00
Paul Cornett
0728199b91 process pending wx events before sending idle events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-08 05:31:32 +00:00
Václav Slavík
e2badebb8f added alpha channel support to wxDFB's wxBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-06 22:24:28 +00:00
Václav Slavík
fd2be5df8d fixes to handling of focus changes for toplevel windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-28 12:57:17 +00:00
Václav Slavík
9580fdc3b1 wxDFB wxUSE_STL compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-25 13:55:06 +00:00
Václav Slavík
6954a1e2c9 implemented wxActivateEvent and restoring focus after a TLW that owned it was destroyed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 12:20:25 +00:00
Vadim Zeitlin
2ddff00c92 don't define wxEventLoop class differently in GUI and base, this breaks the
ODR and hence results in many problems in practice; instead use wxEventLoopBase
whenever possible and #define wxEventLoop differently in console applications


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 02:30:01 +00:00
Václav Slavík
c4f6f41c84 fall back to DirectFB's builtin font if no fonts are configured
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 12:38:19 +00:00
Václav Slavík
402dc2145d log missing font directories with wxLogDebug, not wxLogTrace, for more visibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 12:37:03 +00:00
Václav Slavík
cc096b11ea ignore nonexistent font directories silently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 12:34:23 +00:00
Vadim Zeitlin
b46b1d59d6 implement event loop for console applications (heavily modified patch 1715735)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 23:43:39 +00:00
Vadim Zeitlin
643de21414 don't try to create surfaces of 0 size, even if the window size is 0 (as it may happen)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 17:16:05 +00:00
Václav Slavík
b11af9ed9d temporary fix for wxDFB compilation in Unicode mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 16:48:11 +00:00
Václav Slavík
50f1747a7c take into account DirectFB's removal of some command line arguments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 13:45:32 +00:00
Václav Slavík
26f03c44d0 use utf8_str() in wxDFB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 18:55:59 +00:00
Robert Roebling
04ab8b6ddf Moved all the coordinate system calculation to wxDCBase
and thus removed all the duplicated code in all wxDC
   classes.
  Problematic is that wxSVGFileDC and wxPostscriptDC inherit
   from wxDC and therefore include platform specific code
   (also before this change) so I chose to override all
   SetLogicalOrigin() etc. methods in these classes and
   call their wxDCBase methods thereby circumventing the
   platform dependent code.
  I'm afraid the Mac code will require updating, too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 11:05:45 +00:00
Robert Roebling
621b83d9b3 Made device to logical and vv conversion methods
virtual and implement them like any other method
    in the wxDC classes, not only in the their files
    but somehow belonging to the wxDCBase class.
  This is required for plugging in differnt DC backends
    with different conversions.
  Ideally (and absolutely possible ) all these methods
    should be removed and just the one in wxDCBase
    should stay using values set in the various
    derived classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:28:29 +00:00
Vadim Zeitlin
c94f845b16 changed wxDC::GetTextExtent() and related methods to take const wxFont pointer, for consistency with wxWindow::GetTextExtent() and because it generally doesn't need a non-const font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 01:49:47 +00:00
Vadim Zeitlin
c2ca375c56 preparation for allowing to use wxTimer in wxBase (heavily modified patch 1113088):
1. Changed wxTimer to use wxTimerImpl
2. Added Unix-specific generic timer implementation
3. Added wxAppTraits::CreateTimerImpl()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:29:16 +00:00
Václav Slavík
b39fc8d7b1 fixed wxBitmap<->wxImage conversion to not exchange red and blue components
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 08:46:53 +00:00
Vadim Zeitlin
ad02525dad don't check whether the window is shown and enabled in AcceptsFocus() itself
as it makes overriding it in derived classes problematic; provide a separate
non virtual CanAcceptFocus() method checking whether the window accepts focus
and if it can accept it now and use it instead of AcceptsFocus(); documented
AcceptsFocus() and AcceptsFocusFromKeyboard()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:36:24 +00:00
Vadim Zeitlin
30c45bdd06 refactoring: replace wxSocketDispatcher with more generic wxSelectDispatcher (patch 1618976)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-16 15:45:12 +00:00
Václav Slavík
ec5006bdc6 Unicode compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-09 18:44:19 +00:00
Václav Slavík
655c20fcd5 don't assume there's always an active wxEventLoop instance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-25 17:33:09 +00:00
Václav Slavík
23205be83c compiled fixes for builds without PCH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-24 13:42:46 +00:00
Václav Slavík
0edbcd6041 implemented wxPopupWindow for wxDFB; added wxNonOwnedWindow as base class for wxTopLevelWindow and wxPopupWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-22 15:13:15 +00:00
Václav Slavík
c04c7a3d0a wxDFB: fix rendering artefacts when scrolling wxScrolledWindow that contains other widgets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-22 15:10:26 +00:00
Václav Slavík
42b0d8b96d implemented wxPopupWindow for wxDFB; added wxNonOwnedWindow as base class for wxTopLevelWindow and wxPopupWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-22 15:04:49 +00:00
Václav Slavík
f7a5043240 fixed deadlock when calling wxPostEvent() from worker thread
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-03 17:25:47 +00:00
Václav Slavík
757b694ba8 wxDFB: fix events processing to support sockets events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-18 17:24:06 +00:00
Václav Slavík
6b44a33553 moved wxX11's wxSocketTable to private wxSocketEventDispatcher class reusable in other ports (backport from SOC2006_SOCKETS branch); use it in wxDFB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-14 14:13:57 +00:00
Václav Slavík
0881232f66 make sure the window is fully painted before DirectFB WM shows it, otherwise artifacts could be seen on the screen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-13 12:08:30 +00:00
Václav Slavík
d1bb1bb5bf 1. removed code that already exist in ~wxTLWBase from ~wxTLW
2. reordered TLW destruction so that the TLW is fully usable until all children (that could possibly use it from their dtors) are destroyed


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-10 15:58:18 +00:00
Václav Slavík
5ea50c92a5 use WXDFB_FONTPATH variable instead of WXDFB_FONTDIR and search the dirs recursively for fonts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-06 18:48:04 +00:00
Václav Slavík
4e1d79d308 implemented wxFontEnumerator for wxDFB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-01 10:14:28 +00:00
Václav Slavík
82c74d8950 destroy IDirectFBWindow in wxTLW dtor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-26 20:05:14 +00:00
Václav Slavík
d7ae4a6264 moved wxMGL's font management code to common so that it can be reused by wxDFB; implemented wxDFB part
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-20 20:45:57 +00:00
Václav Slavík
d04f9b8e31 don't expose M_FONTDATA in public header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-20 16:43:55 +00:00
Václav Slavík
68c957045a don't expose M_FONTDATA in public header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-20 16:21:08 +00:00
Václav Slavík
873fd4af5f don't expose M_FONTDATA in public header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-20 16:14:01 +00:00
Václav Slavík
fa28b00cdc don't use priviledged calls in wxDFB to allow concurrent use of the display by >1 wxDFB apps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-18 13:17:35 +00:00
Václav Slavík
4ca64d4137 fixed wxOverlay to handle wxWindowDC/wxClientDC in the same way wxMac does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 12:17:56 +00:00
Vadim Zeitlin
2ee16da2c3 initialize m_surface when copying invalid bitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 01:55:44 +00:00
Vadim Zeitlin
c16db850cd compilation fixes after adding wxMemoryDCBase::Init(): renamed wxDC::Init() in wxDFB to DFBInit()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 22:42:34 +00:00
Vadim Zeitlin
fea35690f1 Added wxMemoryDC::SelectObjectAsSource() and make SelectObject() unshare
the bitmap to ensure that no other bitmaps are modified; also remove some code
duplication by introducing wxMemoryDCBase (patch 1580745)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 19:41:46 +00:00
Vadim Zeitlin
55ccdb93e4 COW cleanup patch (1583966):
1. perform deep comparison for the classes for which it makes sense in the
   ports where this wasn't done yet
2. remove (shallow) comparison operators for the classes for which it does
   not make sense (such as wxBitmap)
3. makes wxBitmap use COW on all ports
4. adds wxObject::IsRefTo()
5. centralizes and improves COW docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 19:26:48 +00:00
Václav Slavík
59eb2acac0 fixed typo in last commit: use YLOG2DEV for y coordinates, not XLOG2DEV
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 14:26:20 +00:00
Václav Slavík
ea28077683 don't draw the endpoint in DrawLine at least in the common cases of vertical and horizontal lines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 12:41:28 +00:00
Václav Slavík
30c841c84d moved wxOverlay into overlay.* files and out of dc.h/dcbase.cpp; implemented wxOverlay for wxDirectFB port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-24 12:29:14 +00:00
Robin Dunn
432efcb004 wxMemoryDC constructor now optionally accepts a wxBitmap parameter,
calling SelectObject itself if a valid bitmap is passed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-13 18:48:36 +00:00
Vadim Zeitlin
b7cacb43db add IsOk() to all classes having Ok() method (patch 1570985)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 21:56:55 +00:00
Paul Cornett
452418c4b0 Move some things to wxBitmapBase to avoid much duplication.
Use proper const for XPM data, and const void* for arbitary bitmap data.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 08:04:49 +00:00
Václav Slavík
e48a305514 clean DFB event buffer on shutdown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 19:22:40 +00:00
Václav Slavík
e17cd59f72 fixed another typo in pen/brush style validation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 14:44:52 +00:00
Václav Slavík
335c3c4a3b fixed typos in pen/brush style validation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 14:35:12 +00:00
Václav Slavík
21e3246c42 don't assert in wxDC::Blit() calls if the source rect is outside of source DC (wxCaret is prone to this)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 10:00:57 +00:00
Václav Slavík
399754a683 fixed incorrect computation of window's visible area: window's position was added once too much
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 09:50:39 +00:00
Vadim Zeitlin
a43c3ed057 suppress gcc warning about DWET_XXX enumeration values not handled in switch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-28 23:09:42 +00:00
Vadim Zeitlin
87f83ac867 The Lesser wxMask Refactoring: merged wxMGL and wxDFB version, added wxMaskBase which could/should be used by other ports later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-28 23:02:39 +00:00
Václav Slavík
8e3e26d375 don't hardcode the theme, it prevents WXTHEME env.var. from working
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-28 15:26:56 +00:00
Vadim Zeitlin
7de1afbfd2 DIKI_ALTGR was removed in DFB 0.9.25
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-28 14:02:52 +00:00
Vadim Zeitlin
8ddb1b8a88 handle DIKI_ALT_GR in the switch even if we don't have any matching key code, just to avoid gcc warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-28 13:43:19 +00:00
Václav Slavík
f87d0500fa added assert to check for not-yet-implemented behavior of SetClippingRegion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 19:08:54 +00:00
Vadim Zeitlin
8a16d7370e The Great wxRegion Refactoring:
1. added wxRegionBase class and derive all wxRegions from it
2. also added wxRegionWithCombine for the ports providing Combine() method
   (MSW, OS2 and Mac) to reduce code duplication further
3. made sure region comparison works the same way in all ports (except those
   not implementing it) and added IsEqual() method


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 11:47:23 +00:00
Václav Slavík
7e2baeb413 don't allocate backbuffer for dummy surfaces
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 08:01:36 +00:00
Václav Slavík
93259e592b reduce the number of repaintings by repaiting (rect) union of all invalidated areas instead of iterating over every Refresh() request including duplicate ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 07:55:51 +00:00
Vadim Zeitlin
19883268f1 use wxRect::Contains(), not Inside() (fixes compilation for WXWIN_COMPATIBILITY_2_6==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 13:09:46 +00:00
Václav Slavík
6f7eb299f0 fixed client<->window coords translations in DoMoveWindow and DoSetSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 17:23:25 +00:00
Václav Slavík
4ff28c37c8 implemented SetFocus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-22 06:55:08 +00:00
Václav Slavík
3dcc2231fa fixed DrawText to use text colours instead of pen+brush colours
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-21 12:56:28 +00:00
Václav Slavík
224175a564 hide the caret before setting m_updateRegion: produces small flicker, but works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-21 10:13:42 +00:00
Václav Slavík
d18a706166 last change broke seting the surface in the common case, fixed (and reorganized the code a bit)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-20 08:09:51 +00:00
Václav Slavík
4dc9a81d7e fixes to wxWindowDC flipping+clipping when painting on hidden windows or windows not being painted at the moment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-19 14:14:21 +00:00
Václav Slavík
7807a2b499 fixed TLWs resizing to invalidate the DFB surface used for painting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-19 13:07:46 +00:00
Václav Slavík
5942996c94 basic blitting implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 11:20:58 +00:00
Václav Slavík
3278b06e6b added wxFAIL_MSG to unimplemented SetDepth/Width/Height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-14 16:20:00 +00:00
Václav Slavík
a46d481471 implemented convertion between wxImage and wxBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-14 16:16:42 +00:00
Václav Slavík
949e0a3827 added check for supported depth and 'not implemented' wxFAIL_MSG
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-14 14:39:13 +00:00
Václav Slavík
4562386dc5 implemented wxBitmap::GetSubBitmap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-14 14:36:12 +00:00
Václav Slavík
865a74c700 renamed wxWindow::IsVisible() to IsShownOnScreen() to fix name conflicts with other classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-14 12:22:46 +00:00
Václav Slavík
22a35096a0 renamed wxRect::Inside() to wxRect::Contains(), wxRect::Inside(wxRect) is too confusing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 17:12:25 +00:00
Václav Slavík
bb78b682be wxTLW::DoRefreshRect must check the rect, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 11:01:10 +00:00
Václav Slavík
20671963ef corrected painting implementation for wxDFB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 09:50:02 +00:00
Václav Slavík
564b429f74 limit clipping to surface area
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-12 09:26:14 +00:00