You are not logged in.

#1 2009-11-22 12:48:22

Lexion
Member
Registered: 2008-03-23
Posts: 510

what library to use? [SOLVED]

I want to write a program that involves some fancy effects (like the kind in a dock such as awn or compiz) and I want to know what library to use - even better what library they use.

Last edited by Lexion (2009-11-25 20:59:43)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#2 2009-11-22 13:01:30

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: what library to use? [SOLVED]

Well, cairo-dock has some pretty nice effects, and it uses (surprisingly) the cairo libraries.  There are some binary packages of cairo libraries for ruby and python too, if you're planning on using either of those languages, it might be worth having a look at.  I'm not sure how easy they are to use (never personally wrote a program using them), but it should fulfill your requirements.

Hope that helps,
Lswest


Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#3 2009-11-22 19:48:40

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: what library to use? [SOLVED]

What language(s) are you considering?

Offline

#4 2009-11-22 20:15:03

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: what library to use? [SOLVED]

C, C++, python


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#5 2009-11-22 22:09:53

xenobrain
Member
From: Lodi, CA
Registered: 2006-05-31
Posts: 91

Re: what library to use? [SOLVED]

If you're doing a docker, maybe you need to get familiar with the API of your DE and it's window manager?  Compiz and KWin provide nice support for animations.

Last edited by xenobrain (2009-11-22 22:14:43)

Offline

#6 2009-11-22 23:18:52

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: what library to use? [SOLVED]

A proper docker shouldn't need to worry about which WM or DE it's using, unless you're implementing it as a Plasmoid or something.

Cairo is likely what you need.  Cairo, and OpenGL/XRender.  I suggest you take a look at the code for Cairo Dock, Avant Window Navigator, etc.

Offline

#7 2009-11-25 20:59:18

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: what library to use? [SOLVED]

I looked into Cairo and found it too complex for my needs (I normally wouldn't say that, but I found something simpler).  I looked into awn as you recommended, but found that I liked moblin's (a linux distro for netbooks) dock better.  It uses clutter, which I tried and liked.  I made a simple dock consisting of a bunch of expanding and despanding boxes.  Thanks for the quick answers.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

Board footer

Powered by FluxBB