Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » gtk_widget_shape_combine_mask and gdk_window_set_child_shapes [RSS Feed]

#1 Nov. 27, 2005 23:59:26

Andrew S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

gtk_widget_shape_combine_mask and gdk_window_set_child_shapes


Anyone have experience using gdk_window_set_child_shapes? or
(merge_child_shapes)

I don't really understand how it works.

The effect I want is to have a top level window without decorations that
appears to have a few sections (normal gtk widgets) that appear to float
around together.

I apply gtk_widget_shape_combine_mask to the different and they look
good in the layout.

I was hoping I could then call gdk_window_set_child_shapes is the gdk
window of the top level and everything would be great, but instead this
makes everything disappear.

The application is running and if I run xwininfo, all the children
windows exist and have the proper dimension, but nothing appears on
screen. Further, if I iconify/deiconify (under Gnome) I see an outline
collapse into the taskbar.

If I call gdk_window_set_child_shapes the behavior is also strange, now
the main window draws with a truncated rectangular version that cuts off
across the other sections. (xwininfo says the children still have their
original dimension)

If I compose a bitmap mask of the exact dimension and placement of all
the widgets, then I can call gtk_widget_shape_combine_mask on the
toplevel and get the desired behavior. I want to avoid doing this
because it would be a royal pain to update the mask for any little
change.

Any suggestions, ideas, or experience will be welcomed :)

Regards,

Andrew Shafer




_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Nov. 29, 2005 20:34:08

Andrew S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

gtk_widget_shape_combine_mask and gdk_window_set_child_shapes


Any one? Any one? Bueller?

On Sun, 2005-11-27 at 16:57 -0700, Andrew Shafer wrote:
> Anyone have experience using gdk_window_set_child_shapes? or
> (merge_child_shapes)
>
> I don't really understand how it works.
>
> The effect I want is to have a top level window without decorations that
> appears to have a few sections (normal gtk widgets) that appear to float
> around together.
>
> I apply gtk_widget_shape_combine_mask to the different and they look
> good in the layout.
>
> I was hoping I could then call gdk_window_set_child_shapes is the gdk
> window of the top level and everything would be great, but instead this
> makes everything disappear.
>
> The application is running and if I run xwininfo, all the children
> windows exist and have the proper dimension, but nothing appears on
> screen. Further, if I iconify/deiconify (under Gnome) I see an outline
> collapse into the taskbar.
>
> If I call gdk_window_set_child_shapes the behavior is also strange, now
> the main window draws with a truncated rectangular version that cuts off
> across the other sections. (xwininfo says the children still have their
> original dimension)
>
> If I compose a bitmap mask of the exact dimension and placement of all
> the widgets, then I can call gtk_widget_shape_combine_mask on the
> toplevel and get the desired behavior. I want to avoid doing this
> because it would be a royal pain to update the mask for any little
> change.
>
> Any suggestions, ideas, or experience will be welcomed :)
>
> Regards,
>
> Andrew Shafer
>
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-l***@*nome.org
>http://mail.gnome.org/mailman/listinfo/gtk-list_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#3 Nov. 29, 2005 21:08:52

Paul D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

gtk_widget_shape_combine_mask and gdk_window_set_child_shapes


On Tue, 2005-11-29 at 13:32 -0700, Andrew Shafer wrote:
> Any one? Any one? Bueller?

the wheelbarrow demo in gtkdemo should help.


_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » gtk_widget_shape_combine_mask and gdk_window_set_child_shapes [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support