Re: odd shaped windows



On Wed, 16 Feb 2005 10:02:26 -0800 (PST), Dave Andruczyk
<djandruczyk yahoo com> wrote:
  Is it possible with gtk to display a window that doesn't have any window
border, decorations, and be of arbritrary shape?

You need gdk_window_shape_combine_region() or gdk_window_shape_combine_mask():

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-shape-combine-mask

Use one of these on yout toplevel window widget after showing it. Also
gtk_window_set_decorated() to remove the title bar and size widgets
(but before showing it).



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]