Bradley T Hughes wrote:
Index: lib/Font.cc
===================================================================
RCS file: /cvsroot/blackboxwm/blackbox/lib/Font.cc,v
retrieving revision 1.40
diff -b -u -r1.40 Font.cc
--- lib/Font.cc 3 Jan 2005 09:42:52 -0000 1.40
+++ lib/Font.cc 27 Jan 2005 10:05:18 -0000
@@ -518,6 +518,16 @@
str.c_str(), str.length());
}
+void bt::drawShadowedText(const Font &font, const Pen &pen1, const Pen &pen2,
+ Drawable drawable, const Rect &rect,
+ Alignment alignment, const ustring &text) {
+ drawText(font, pen1, drawable, rect, alignment, text);
+
+ bt::Rect shadowRect = rect;
+ shadowRect.setPos(rect.x() + 1, rect.y() + 1);
+ drawText(font, pen2, drawable, shadowRect, alignment, text);
+}
+
bt::ustring bt::ellideText(const bt::ustring &text, size_t count,
const bt::ustring &ellide) {
This should be:
Index: lib/Font.cc
===================================================================
RCS file: /cvsroot/blackboxwm/blackbox/lib/Font.cc,v
retrieving revision 1.40
diff -b -u -r1.40 Font.cc
--- lib/Font.cc 3 Jan 2005 09:42:52 -0000 1.40
+++ lib/Font.cc 27 Jan 2005 10:34:56 -0000
@@ -518,6 +518,15 @@
str.c_str(), str.length());
}+void bt::drawShadowedText(const Font &font, const Pen &pen1, const Pen &pen2,
+ Drawable drawable, const Rect &rect,
+ Alignment alignment, const ustring &text) {
+ bt::Rect shadowRect = rect;
+ shadowRect.setPos(rect.x() + 1, rect.y() + 1);
+ drawText(font, pen2, drawable, shadowRect, alignment, text);
+ drawText(font, pen1, drawable, rect, alignment, text);
+}
+
bt::ustring bt::ellideText(const bt::ustring &text, size_t count,
const bt::ustring &ellide) {-- Bradley T. Hughes - bhughes at trolltech.com Trolltech AS - Waldemar Thranes gt. 98 N-0175 Oslo, Norway
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
List archives: http://asgardsrealm.net/lurker/splash/index.html
