| 337 | // ---------------------------------------------------------------------------------------- |
| 338 | |
| 339 | Bool XCheckIfEventPredicate ( |
| 340 | Display* , |
| 341 | XEvent* event, |
| 342 | XPointer arg |
| 343 | ) |
| 344 | /*! |
| 345 | ensures |
| 346 | - if (event is an Expose event for the window pointed to by arg) then |
| 347 | - returns true |
| 348 | - else |
| 349 | - returns false |
| 350 | !*/ |
| 351 | { |
| 352 | if (event->type == Expose) |
| 353 | { |
| 354 | XExposeEvent* e = reinterpret_cast<XExposeEvent*>(event); |
| 355 | Window* win= reinterpret_cast<Window*>(arg); |
| 356 | if (e->window == *win) |
| 357 | { |
| 358 | return 1; |
| 359 | } |
| 360 | } |
| 361 | return 0; |
| 362 | } |
| 363 | |
| 364 | // ---------------------------------------------------------------------------------------- |
| 365 |
nothing calls this directly
no outgoing calls
no test coverage detected