Re: gnome_canvas_get_item_at() and transparency
- From: Bruno Coudoin <bcoudoin anfora fr>
- To: "gnome-devel-list gnome org" <gnome-devel-list gnome org>
- Cc: 9kGemusen myrealbox com
- Subject: Re: gnome_canvas_get_item_at() and transparency
- Date: 20 Aug 2002 19:01:32 +0200
The best way to do this is to use the group feature of the canvas.
You create a group and add object to it.
Then moving the group and all the objects follow.
If you wan't example of this, you can have a look to gcompris.
http://ofset.sf.net/gcompris
Bruno.
Le mar 20/08/2002 à 18:01, gnome-devel-list-request gnome org a écrit :
> Send gnome-devel-list mailing list submissions to
> gnome-devel-list gnome org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
> or, via email, send a message with subject or body 'help' to
> gnome-devel-list-request gnome org
>
> You can reach the person managing the list at
> gnome-devel-list-admin gnome org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gnome-devel-list digest..."
>
>
> Today's Topics:
>
> 1. gnome_canvas_get_item_at() and transparency (9kGemusen)
> 2. Re: heavy activity problems (iain)
> 3. widget arrays (Clancy, Shane W.)
>
> --__--__--
>
> Message: 1
> Subject: gnome_canvas_get_item_at() and transparency
> From: 9kGemusen <9kGemusen myrealbox com>
> To: gnome-devel-list gnome org
> Date: 18 Aug 2002 01:51:36 -0400
>
> I would like to have one transparent item cover a set of non-transparent
> items. This would give me a way to have the set of objects underneath
> the transparent item act as one. I run into problems, though, when I
> call gnome_canvas_get_item_at(), expecting to get the transparent layer.
> It seems to ignore transparent items. Is there a way to recognize a
> position on the logical layer? Or a better way to implement this?
>
> Many thanks, please CC,
> Gemusen
>
>
>
> --__--__--
>
> Message: 2
> Subject: Re: heavy activity problems
> From: iain <iain prettypeople org>
> To: Ali Akcaagac <ali akcaagac stud fh-wilhelmshaven de>
> Cc: gnome-devel-list gnome org
> Organization: Prettypeople Dot Org
> Date: 18 Aug 2002 22:25:20 +0100
>
> On Sun, 2002-08-18 at 19:55, Ali Akcaagac wrote:
>
> > let's say i start an application in an environment that has enough
> > memory, that app usually get setarted and fills it's startaddress and
> > endaddress in the memorylist. it also allocates other memory for it's
> > workstuff and datastuff..
>
> If you're suggesting that an application aquires all the memory it needs
> when it starts this is not true. Memory requests happen constantly, and
> the linux task manager will kill off tasks as memory is running out. If
> there's a "couple of messages" about being out of memory, then thats the
> problem, you're out of memory.
>
> iain
> --
> "Star Wars: Episode II Attack of the Clones" is rated PG (Parental
> guidance suggested). It has many violent scenes, none of them terribly
> upsetting or, for that matter, interesting."
>
>
> --__--__--
>
> Message: 3
> From: "Clancy, Shane W." <SCLANCY northropgrumman com>
> To: "'gnome-devel-list gnome org'" <gnome-devel-list gnome org>
> Subject: widget arrays
> Date: Tue, 20 Aug 2002 08:06:40 -0700
>
> all,
> i am working on a gnome program that will have database accessability. the
> user will have the choice of which tables to manipulate, but no tables have
> more than 20 columns. i have 20 gnome_entry widgets with a frame around
> each for data entry. when the user selects which table he/she wants to
> manipulate, i would like to have the labels on my frames change to
> correspond to the columns in that table. here is something like what i want
> to do:
>
> char *table1_labels[] = {"blah1", "blah2", "blah3",...};
> char *table2_labels[] = {"something1", "something2", ...};
>
> GtkWidget *entry[] = {"entry1", "entry2", "entry3", ...};
>
> if (user selects table 1)
> {
> for (i = 0; i < 20; i++)
> {
> gtk_frame_set_label (entry[i], table1_labels[i]);
> }
> }
>
> i would like to avoid coding a gtk_frame_set_label for every column in every
> table. the method i've tried (above) does not work. gcc is telling me that
> entry1, entry2, etc. are not defined. is there an easy way to do this?
>
> thanks,
> shane
>
>
> --__--__--
>
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
>
>
> End of gnome-devel-list Digest
--
Bruno Coudoin
ANFORA - http://www.anfora.fr
Tel: (33)5 67 310 333
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]