Index:
[thread]
[date]
[subject]
[author]
From: Andrew Apted <ajapted@netspace.net.au>
To : ggi-develop@eskimo.com
Date: Tue, 28 Jul 1998 22:53:58 +1000
Re: New event type of gwt-only event ?
Rodolphe writes:
> Boujour a tous,
>
> sooner or later (maybe in the middle :-), I will have to provide
> a new event type within libgwt. (GWT=Generic Windowing Toolkit, so
> you may guess that this event will be something like a WINDOW_EXPOSED
> event).
Such an event already exists in the devel repository: evExpose.
At least the fbdev target generates it (on VT switch-back), I don't know
about the X targets or whatever. It includes (x,y) and (w,h) fields
which say what part was exposed.
> What is the best aproach:
> 1- add a _new_ "virtual" GGI event ?
> BTW: are there differences (even theoretical) between libggi events and
> kii events ?
> 2- supply custom libgwt-only events ?
Custom events are easy, just use "evInformation" events for events that
just contain information, and "evCommand" events for things that say "do
something !". These events share the "ggi_cmd_event" structure, which
have a "code" field which distinguishes the event. All you need is some
libgwt-special value, like having "wt" in the upper 16 bits, so that
your events don't accidently collide with someone else's.
> Could take the opportunity of your answer to provide some details on
> the GGI event dispatching system ?
What would you like to know ?
Cheers,
_____________________________________________ ____
\ /
Andrew Apted <andrew@ggi-project.org> \/
Index:
[thread]
[date]
[subject]
[author]