Re: Canvas shortcomings
- From: Havoc Pennington <hp redhat com>
- To: Martin Sevior <msevior mccubbin ph unimelb edu au>
- Cc: Owen Taylor <otaylor redhat com>, Lauris Kaplinski <lauris ximian com>, Gustavo João Alves Marques Carneiro <ee96090 fe up pt>, gnome-devel-list gnome org
- Subject: Re: Canvas shortcomings
- Date: 17 Jun 2001 23:11:02 -0400
Martin Sevior <msevior mccubbin ph unimelb edu au> writes:
> I conjecture that having one GtkObject per item would not yield sufficient
> speed for a WordProcessor where we're constantly reshuffling text all over
> the screen. Just imagine hitting delete on a line of Justified text that
> swallowed the following line. All the text following needs to be cleared
> and repainted.
I think that's why Owen said "model is painting, not a canvas" -
i.e. there are paint commands, not canvas item things.
> I also conjecture that doing this in C based API would be a
> challenge.
Just more typing. ;-) You take what you'd do in C++, then manually
namespace it and put the "this" argument in front of the arg list. You
create a struct full of function pointers if you need a vtable. Works
fine, just a bit more masochistic. ;-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]