Re: gdk_draw_layout with GDK_XOR
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: gtk-list gnome org
- Subject: Re: gdk_draw_layout with GDK_XOR
- Date: Fri, 15 Oct 2004 11:30:43 +0200
On Fri, Oct 15, 2004 at 01:42:09AM +0200, David Necas (Yeti) wrote:
>
> Does gdk_draw_layout() allow to achieve the same effect as
> [long deprecated] gdk_draw_string() + GDK_XOR GC function?
> It seems gdk_draw_layout() always simply draws the text
> over, no matter what GC function I set.
Well, here's what I need -- maybe there's other way to
achieve it:
I need to draw identifiers to some kinds of selections (may
be lines, crosses, ...) on an unpredictable varying
background, which is actually a display of some data. So
I'd like
- visibility on varying backgrounds
- obscuring as little of the underlying bg as possible
- ease of undrawing
- portability
gdk_draw_string() with GDK_XOR/GDK_INVERT has first three
properties, but requires some backend-dependent font
guesswork and it is deprecated so I wonder whether it will
survive to Gtk+3.0...
I'm unable to get anything else than portability from
gdk_draw_layout(), that is useless in itself.
It should be possible to draw the text to an offscreen
drawable and then draw that with GDK_XOR. But how do I get
rid of antialiasing (that don't work well with XOR)?
Yeti
--
Dynamic IP address is not a crime.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]