Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Programming Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Programming Talk
This forum is for all programming questions.
The questions do not have to be directly related to Ubuntu and any programming language is allowed.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old September 18th, 2007   #11
moma
Quad Shot of Ubuntu
 
moma's Avatar
 
Join Date: Jan 2006
Location: Grønland,Oslo
Beans: 484
Re: How do I make shaped windows?

Here is the sample 2.

// shape2.cpp
// This example shows how to create a shaped, borderless window by drawing the shape runtime. Again, the code uses only XLib and XShape* extension calls.

The draw() function draws first the shape on the mask bitmap, then it draws the same figure on the window.

Attached: shape2.tar

You will need the "libxext-dev" package to compile and run it.

Compile:
$ g++ -lX11 -lXext shape2.cpp -o shape2

Run:
$ ./shape2

You can easily make the shape (window) to remold, rotate, move etc.
---------

Next> A tiny cairo sample.
Attached Files
File Type: tar shape2.tar (40.0 KB, 45 views)
__________________
// moma
http://www.futuredesktop.org

Last edited by moma; September 18th, 2007 at 12:27 PM..
moma is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:50 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry