Re: Widget Overlays
- From: Alexander Larsson <alexl redhat com>
- To: Tim Janik <timj imendio com>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Widget Overlays
- Date: Wed, 11 Apr 2007 15:59:20 +0200
On Wed, 2007-04-11 at 12:09 +0200, Tim Janik wrote:
> On Mon, 9 Apr 2007, Matthew Bucknall wrote:
> > I've considered hovering undecorated 'always above' top-level windows
> > above my main window, but the icons are not rectangular in shape, so I
> > need to deal with transparency (I don't know how), and I also need to
> > control their position relative to the main window with pixel precision
> > otherwise things are just going to look wonky.
>
> see gtk_widget_shape_combine_mask():
> http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-shape-combine-mask
Using a toplevel window seems unnecessary. Why not just make a custom
container that has two overlapping child windows, put the overlayed
stuff and the shape mask on the upper window and the rest in the lower
window.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a lonely devious messiah who hides his scarred face behind a mask. She's
a cynical paranoid schoolgirl operating on the wrong side of the law. They
fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]