Main Page | Report this Page
Linux Forum Index  »  Linux Development  »  Non-rectangular (shaped) main window that has non-rectangular child windows.
Page 1 of 1    

Non-rectangular (shaped) main window that has non-rectangular child windows.

Author Message
moma
Posted: Fri Sep 21, 2007 8:15 am
Guest
Hello,

I have started to learn how to create shaped, non-rectangular windows
with the XShape* functions.

I can now create a shaped main window. I set or create a bitmap mask for
it and display the window. This solutions works very well, even when I
use Cairographics to draft the window's shape. I mostly use XLib though.

See an example 1 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384231#post3384231

Example 2 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384886#post3384886
----- -----

Now, want to go further.

I have tried to create a shaped main-window and put some shaped child
controls (child windows) on it. But I cannot make it work (the child
windows ar enot visible) because I do not understand all the
intricatenesses of the XShape* functions.

XShape* functions:
http://linux.die.net/man/3/xshapecombinemask

Please, tell me how to do it (a non-rectangular main-window with many
non-rectangular child controls). Can you provide an example?

Do I have to sum up the masks of childwindows and put it on the
main-window?

Help and you will get a the code in return :-)

TIA.

// moma
http://www.futuredesktop.org

PS. cannot live in a rectangular world anymore.


Note: Answers go to "comp.os.linux.development" by default. I set it as
Followup-To group.
 
moma
Posted: Fri Sep 21, 2007 11:11 am
Guest
I have re-sent this question to news://comp.os.linux.development.apps
because news://comp.os.linux.development is practically dead.

// moma



moma wrote:
Quote:
Hello,

I have started to learn how to create shaped, non-rectangular windows
with the XShape* functions.

I can now create a shaped main window. I set or create a bitmap mask for
it and display the window. This solutions works very well, even when I
use Cairographics to draft the window's shape. I mostly use XLib though.

See an example 1 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384231#post3384231

Example 2 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384886#post3384886
----- -----

Now, want to go further.

I have tried to create a shaped main-window and put some shaped child
controls (child windows) on it. But I cannot make it work (the child
windows ar enot visible) because I do not understand all the
intricatenesses of the XShape* functions.

XShape* functions:
http://linux.die.net/man/3/xshapecombinemask

Please, tell me how to do it (a non-rectangular main-window with many
non-rectangular child controls). Can you provide an example?

Do I have to sum up the masks of childwindows and put it on the
main-window?

Help and you will get a the code in return :-)

TIA.

// moma
http://www.futuredesktop.org

PS. cannot live in a rectangular world anymore.


Note: Answers go to "comp.os.linux.development" by default. I set it as
Followup-To group.
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Dec 01, 2009 10:55 am