> > Other Question:
> > Is there a way to program an windowevent,but for an surface?! I just want
> > to program,
> > that if i click on a surface, without an window, it flip the primary
> > surface.
>
> To create the input events buffer :
>
> IDirectFBEventBuffer *events = NULL;
> dfb->CreateInputEventBuffer(dfb, DICAPS_ALL, DFB_TRUE, &events);
>
> To get the input events :
>
> DFBInputEvent last_event;
> events->GetEvent( events, DFB_EVENT(&last_event) );
> if ( last_event.type == DIET_BUTTONPRESS ) {
> // do something on mouse button event
> }
>
> Did you mean it ?
Not really, maybe i have to explain in more detail. I just want to program an
simple imageviewer.
I' got an primary_surface, a image_surface and 2 button_surfaces. My aim is, if
i click on the
forward button_surface, then the image_surface will be flip. It would be very
easy, if there is something
like an GetID, but just for surface. Unfortunately GetID is just for windows.
Or do you know a way, how
i can program something simple like
(pseudo code)
if (event.type == DIET_BUTTONPRESS)
{
if (event.button == DIBI_LEFT)
{
if(event.surface ==
forward_surface)
then ...... flip image_surface ......
}
}
Greetings from Dresden
____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users