Commit Graph

305 Commits

Author SHA1 Message Date
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Mart Raudsepp
f26623c817 [wxGTK2] gtk+-2.8.0 compatibility. Removed the usage of pango_x_get_context to not depend on a fully deprecated
pangox library, which is not pulled in with gtk+-2.8.0. The pango_x_get_context call was (arguably) making font
drawing on top of a wxDC slightly faster on (especially remote) X11 in case of non-antialiased fonts (I was unable to
find a non-antialiased font that actually returns true for GetNoAntiAliasing()).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-17 21:40:44 +00:00
Włodzimierz Skiba
0a164d4c4e [1231183] 'cleanup: mismatched indentation' and other cleanings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 18:01:46 +00:00
Robert Roebling
b7a4965413 Apply mask origin patch for blitting.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-29 19:22:54 +00:00
Mart Raudsepp
cc35003aa4 Add some missing runtime gtk+ version checks. There is more to spot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-14 13:00:42 +00:00
Włodzimierz Skiba
91af089567 Second part of '[ 1216148 ] cleanup: unused variables and declarations'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-08 14:49:36 +00:00
Robert Roebling
ace35c6293 Apply minimal DC patch.
Implement GetDepth for GTK2.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 10:01:18 +00:00
Kevin Hock
c2cb80c865 Allow using negative angles with DrawRotatedText. [ patch 1162771 ]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-16 05:31:13 +00:00
Włodzimierz Skiba
463c4d7193 wx/math.h integration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-14 21:10:15 +00:00
Włodzimierz Skiba
ab9d0a8ca3 IS_HATCH macro replaced with wxBrush::IsHatch() + source and docs little cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-30 18:46:20 +00:00
Robert Roebling
1d65e535d5 Corrected positioning of rotated text.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 23:15:14 +00:00
Robert Roebling
f1c72f0ca0 Implemented DoDrawRotatedText() by way of a
rotation of a alpha blended text bitmap.
    It would be better if Pango could draw
    directly into an wxImage (as FreeType)
    can, but that is for later..


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-18 14:04:30 +00:00
Václav Slavík
6ff734acec reverted DrawRotatedText change, it's broken
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-18 10:30:22 +00:00
Robert Roebling
c874715013 Start for Pango 1.6 based text rotation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-17 21:57:16 +00:00
Václav Slavík
1abedc328b fixed rendering of bitmaps with alpha channel under GTK+ 2.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-14 23:03:51 +00:00
Robert Roebling
fa499247cf Corrected typo in font scaling code.
More printing code for GNOME.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-02 21:21:53 +00:00
Robert Roebling
bf9848e73d Took one part of the patch back again...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 19:32:48 +00:00
Robert Roebling
f53df133a6 Applied (part of) small patch from Chris Bogolte which
corrects a test in the Blit code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 14:32:42 +00:00
Robin Dunn
bf47e3986a Verified and applied [ 1042133 ] GTK2.0: DrawRotatedText dumb implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-07 17:05:30 +00:00
Vadim Zeitlin
b1f0abe45e don't crash under GTK1 if we failed to get GdkFont in GetTextExtent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-19 10:55:51 +00:00
Václav Slavík
feac79373c added alpha channel support to wxGTK2's wxBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-21 22:42:06 +00:00
Václav Slavík
7706daf38b more GTK2+ANSI fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-17 20:50:46 +00:00
Václav Slavík
f69e200970 set descent in GetTextExtend; use PANGO_PIXELS instead of dividing by PANGO_SCALE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-01 08:56:25 +00:00
Václav Slavík
1dbeee5774 implemented underlined text drawing for GTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-27 13:10:29 +00:00
Vadim Zeitlin
a1e101d056 fixed crash when string couldn't be converted to UTF8 in GetTextExtent() under GTK 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-22 21:35:14 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Julian Smart
2cfddfe7ca Sometimes the clipping region can become bigger than the
actual window, and this can cause X11 to fail inside gdk_gc_set_clip_region
intermittently. The clipping region is now limited to the actual
window size so only valid regions can be passed to this function.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-19 21:35:17 +00:00
Julian Smart
823faac334 Removed code duplication introduced during wxUniv merge in 1.132
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-03 17:58:51 +00:00
Julian Smart
bb56b0a828 Applied [ 828322 ] Use gdk_draw_polygon for the outline in DoDrawPolygon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 10:14:38 +00:00
Robert Roebling
551b5391ae \
Updated bitmap blitting code as per 2_4


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-17 14:28:52 +00:00
Robert Roebling
d90c9596c1 Applied new DoDrawBitmap() and DoBlit() from 2_4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-09 20:03:17 +00:00
Robert Roebling
0d2bf8bf45 Fixed bitmap problem reported last week.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-06 15:59:54 +00:00
Vadim Zeitlin
375fc5a970 fix for crash when using user-dashed lines (patch 801663)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 12:20:39 +00:00
Václav Slavík
14f355c2b5 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Václav Slavík
76b204675b support SetBackgroundMode and SetTextBackground with GTK+2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-31 17:30:00 +00:00
Vadim Zeitlin
6eb37239e0 use on gdk_draw_lines() call instead of multiple gdk_draw_line() ones (patch 717012)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-11 14:14:23 +00:00
Julian Smart
6c9a19aaba Removed erroneous copyright names and corrected licence spelling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:23:28 +00:00
Robert Roebling
6185050104 Minor corrections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-11 11:20:45 +00:00
Robert Roebling
e4da1035e4 Now scaling doesn't scale GetTextExtent() anymore. This
make print previewing look fine for now. Next is actually
   printing what you preview :-)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 21:04:10 +00:00
Robert Roebling
cfcc393212 Font work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 12:40:45 +00:00
Julian Smart
85b7bb3557 Applied patch [ 673055 ] Text rendering in wxGTK 2.4.0 and GTK2 fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-24 12:36:04 +00:00
Robert Roebling
bbd006c0ce Removed usage of GetInternalFont() from GTK 2.0. This
also removes any usage of GdkFont. I left the actual
    deprecated method so that the change can be bckported
    without binary incompatible changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-05 22:59:44 +00:00
Julian Smart
77416abdc5 Applied patch [ 638561 ] Allow SetFont(wxNullFont) in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-09 09:14:39 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Robert Roebling
9ac71bef07 Compile fix for prop.
Test change for dcclient.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 20:27:35 +00:00
Robert Roebling
fb3ed106d1 Compile fixes for ANSI mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-17 17:03:01 +00:00
Robert Roebling
6c2019b942 Minor correction to GetTextExtent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 20:56:40 +00:00
Robert Roebling
48d011c896 Implemented GetTextExtent() for GTK 2.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 17:23:20 +00:00
Julian Smart
a57a1fb7e0 Applied patch [ 588140 ] User Scaling of Rotated Text on wxGTK
The effect of wxDC::SetUserScale() on
wxDC::DrawRotatedText() is to scale the text **twice**.
The code is in src/gtk/dcclient.cpp

The first scaling operation occurs when choosing the
GTK font size (as happens for wxDC::DrawText()). The
rotated text is scaled a second time when blitting the
rotated text bitmap to the DC, in the functions
XLOG2DEV(x + dstX) and YLOG2DEV(y + dstY).

The supplied patch moves the rotated bitmap co-ords
(dstX, dstY) outside of the LOG2DEV functions.

bryan cole (bryancole)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 10:00:50 +00:00