On 7 July 2010 17:34, Staffan Gimåker <staf...@gimaker.se> wrote:
> Is there a particular reason that you need a custom widget? Can you not
> just use a GtkDrawingArea and use Cairo to draw things in it?

That's the thing I'm unsure of, when to use a GtkDrawingArea and when
to use a custom widget.

I've never required anything beyond the standard widgets before now.
I'll look at the Cairo documentation.

Cheers,
James.

> The official Cairo documentation (the tutorial is here:
> http://cairographics.org/tutorial/) and the Gtk documentation are
> probably good places to start.
>
> /Staffan
>
> On Wed, 2010-07-07 at 13:05 +0100, James Morris wrote:
>> Hi,
>>
>> I need to create some complex widgets for my program. The first of
>> which is the main widget which will show static rectangles within
>> which other rectangles appear and disappear at musical rates (think
>> fast electronic dance music rates). The static rectangles may overlap
>> each other, but the other rectangles may not.
>>
>> I'm working in C.
>>
>> Can anyone recommend a good tutorial for this kind of thing?
>>
>> I've looked over http://zetcode.com/tutorials/cairographicstutorial/
>> but it doesn't explain much about creating custom widgets, nor am I
>> sure if I should use Cairo or not. While I want the display to be
>> colourful and attractive, I also want lightweight resource
>> requirements and speed.
>>
>> Thanks,
>> James.
>> _______________________________________________
>> gtk-app-devel-list mailing list
>> gtk-app-devel-list@gnome.org
>> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to