![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
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 |
|
|
#11 |
|
Quad Shot of Ubuntu
![]() 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. Last edited by moma; September 18th, 2007 at 12:27 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|