paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] drawing vs blitting


From: Alexander Pipelka
Subject: Re: [paragui-users] drawing vs blitting
Date: 05 Jul 2002 18:26:29 +0200

I think this is explained in the releasenotes.
Here a short summary:

There are 2 different kind of widgets: With and without drawing surface
(can be defined in the constructor of PG_Widget, PG_ThemeWidget).

Widgets with drawing surface:
eventDraw ... will draw the widget contents to the internal surface
eventBlit ... will blit the surface to the screen and do some custom
blit operations

Widget without drawing surface:
eventDraw .. will not be called because there's no drawing surface
eventBlit .. will transfer the widget content to the screen surface
(yes. these widgets will be drawn in realtime).

Alex


Am Fre, 2002-07-05 um 17.44 schrieb Keith Swyer:
> hey all, i've been working on some of my own widgets for my application, and 
> have come to realize i'm not sure what the difference is between overriding 
> the eventDraw and eventBlit functions and which should be used when. any kind 
> of explnation would be great here. right now to me it's that the draw will 
> change the surface but not refresh it until a blit is called, and the blit 
> makes the change at the time of a bilt.  is this right?? doesn't exactly 
> sould right to me. 
> 
> thanks,
> keith






reply via email to

[Prev in Thread] Current Thread [Next in Thread]