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
Robert Roebling
46eed000d6
Further code for Pango fonts (work now) and
...
some code for Pango prining. Doesn't work..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-06 18:58:19 +00:00
Robert Roebling
db16cab461
Lots of work to set PangoFontDescription as the
...
native font info data. WIP.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-06 16:41:31 +00:00
Julian Smart
f6116855f0
Corrected my wrong application of patch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-04 19:08:39 +00:00
Julian Smart
696f36b70d
Applied patch from Mark Armstrong <marka@availsolutions.com>
...
Allows GC pool to grow dynamically.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-04 09:05:18 +00:00
Julian Smart
4855a4773e
textctrl.cpp: Removed assert from CanRedo/CanUndo since the best behaviour is
...
to return FALSE (Redo/Undo functions are unimplemented)
treectrlg.cpp: in InsertItem, allow previous item to be null in order
to insert at first position of possibly-empty child list
dcclient.cpp: allow setting of null font (common espec. on Windows)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-13 16:54:32 +00:00
Vadim Zeitlin
f60e7fdddb
dumb fix for wxDC::Clear() crash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-02 13:52:43 +00:00
Robert Roebling
f90566f5c3
Bunch of GTK theme changes.
...
Make wxStatusBar use themes.
SetStatusText() now uses Refresh() since I don't
know why it shouldn't.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-21 16:43:15 +00:00
Julian Smart
387ebd3eb7
Added wxDF_HTML
...
Added VC++/non-Unicode for setting HTML clipboard data
Changed FloodFill to return a bool value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-17 11:48:11 +00:00
Václav Slavík
06cf7c08f2
forgot to check-in wxGTK wxDC changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 22:56:14 +00:00
Vadim Zeitlin
07d2031dde
temporary compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 10:43:59 +00:00
Vadim Zeitlin
c8dbe0aee2
compilation fix for !WXWIN_COMPATIBILITY_2_2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-05 18:11:46 +00:00
Julian Smart
b1699cd397
Applied FloodFill patch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-01 21:40:42 +00:00
Robert Roebling
8cce894070
Preventing bitmap crash differently.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-29 17:23:54 +00:00
Robert Roebling
c7f6246740
Disabled masked bitmaps under GTK 2.0 until I know
...
why they crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-29 15:43:30 +00:00
Václav Slavík
368d59f0d8
don't use deprecated wxImage methods inside wxWin
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-24 00:22:15 +00:00
Vadim Zeitlin
9e691f46b2
changes to make wxGTK compile with GTK+ 2.0: now it does but the minimal
...
sample crashes on startup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-12 19:24:30 +00:00
Robert Roebling
3cd0b8c5b5
wxX11:
...
Updated wxColour for handling Colormaps and ref couting.
Updated wxClientDC et al. for conforming to wxGTK. Many
tricky parts, particularly the bitmap drawing and
blitting is still missing.
Any sample crashes now for some reason with an X error.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-11 20:41:24 +00:00