Re: What are map_event and unmap_event?



>> "map_event" is emitted when a window is first made visible on the
>> display, and "unmap_event" when it is removed. a typical (but not
>> guaranteed) signal event order is:
>> 
>>     show
>>     realize
>>     map
>>     ....	
>>     hide
>>     unmap
>> 
>> "show" is a pseudo-event, it doesn't affect anything "real".
>> "realize"
>> corresponds to the allocation of the underlying objects accessed by
>> GDK for drawing. "map" corresponds to those objects finally being
>> allocated a position on the display screen.
>> 
>> i suspect that for some implementations of GDK, the map event signal
>> might be missing, perhaps. not sure.
>> 
>
>Hi, thank you. But if what you said were correct, isn't that what the
>exposure_event is for, that is, in place of the map_event?

no, expose events are sent whenever some part of the window needs to
be redrawn. thats quite different.



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