Skin like winamp, is it possible?

View: New views
3 Messages — Rating Filter:   Alert me  

Skin like winamp, is it possible?

by Alexies Knight :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good day!!!


I am developing an application, and I am using gtkmm in creating the gui of my application, what I would like to create is a skin like winamp skin. Is it possible with the use of gtk? This is the sample of the skin that I would like to create.  http://www.jvc-australia.com/JVCstores/PRODUCTS/240/ATTRFILE_LRG/KW-XG706_L.jpg

Any help would be consider.. Thanks!

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Skin like winamp, is it possible?

by Fatman_UK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexies Knight wrote:
Good day!!!

I am developing an application, and I am using gtkmm in creating the gui of
my application, what I would like to create is a skin like winamp skin. Is
it possible with the use of gtk? This is the sample of the skin that I would
like to create.
http://www.jvc-australia.com/JVCstores/PRODUCTS/240/ATTRFILE_LRG/KW-XG706_L.jpg

Any help would be consider.. Thanks!
Hi Alexies,

I too want a skinnable app. My current studies lead me to believe this might be possible with Gtk::Widget::shape_combine_mask(), but so far I haven't produced correct results.

I'll let you know if I manage anything interesting.

There is a very old example file called wheelbarrow.c which uses a character string instead of image files. It isn't in the sample directory or on the official server any more. I guess it's broken under the current Gtkmm. I found it on Google.

It seems alpha blending is not possible at all, but simple transparency should work.

Regards,
Adam J Richardson

Re: Skin like winamp, is it possible?

by Fatman_UK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fatman_UK wrote:
Alexies Knight wrote:
what I would like to create is a skin like winamp skin. Is
it possible with the use of gtk?
My current studies lead me to believe this might be possible with Gtk::Widget::shape_combine_mask(), but so far I haven't produced correct results.
Apologies for the double post but I thought this was relevant.
Renato Merli wrote:
Hi,
  Shape_combine maskl is about the creation of non-retangular widgets,
you may find more info seaching for "shapped window" on google. Its
the "low level rendering" i was talk about.
 Its possible to do alpha transparency, since either GDK and CAIRO
does image composing. In gdkmm you use the 'compose' method of the
pixbuf object.Its very simple (but its recommended to use the newer
functions of cairo instead.)

Renato Merli
Hi Renato,

It seems to me that using non-rectangular widgets is one possible technique for creating a Winamp-style (Winamp 3, by the way, not Winamp 2!) skinning engine. The other possibility that comes to mind is partial window transparency. Perhaps there are others.

Thanks for the hint. I think I recall reading something about the compose method, so I'll go back and read it more closely. I have been having trouble with the classes Gtk::Pixmap, Gdk::Pixbuf and Gtk::Bitmap. I'm sure there's a way to load a background image, load a mask image, combine the two and store the result in a Gdk::Window, but I haven't found the right API calls yet.

Cairo could make some interesting "art deco" type widgets, buttons and the like. Isn't it just for vector drawing, though? I want to load and mask raster images.

Regards,
Adam J Richardson