Technical discussions | Discussions techniques
Subscription date : 28 October 2009
Messages : 415
|
hello there,
i'm really curious about how Cairo-Dock's appearance is achieved. With GTK i know how to make windows borderless or transparent. But how do you get a designed background or a window sliding in or out, the bouncing of icons etc? Do you necessarily to draw all these things from code with Cairo or do you also have the possibility to do this with GTK already?
Thanks.
Benjamin |
matttbe, Wednesday 27 April 2011 à 15:47
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Hello,
GTK is only used by CD to create windows (config panel, themes manager, etc.) and menus (these menus that you don't want to have in GTK but GTK3 menus are maybe better).
All other things (designed background or a window sliding in or out, the bouncing of icons) are made with Cairo or with OpenGL.
There are other possibilities with other libraries but GTK is not designed to create a dock (except something "simple" like a panel). => http://en.wikipedia.org/wiki/GTK |
Subscription date : 28 October 2009
Messages : 415
|
Thanks
As much as i enjoy writing an applet with ease thanks to the CD API, i hate doing using things i don't understand how they work.
I've had a hard time finding information on how to make skinnable applications, like say for instance the gnome-panel or Audacious. I found out about GDK however, i haven't seen all the possibilities, but i can see the colour of widgets can be changed or a pixmap applied to them. But i haven't seen proper skinning methods yet. |
Technical discussions | Discussions techniques
|