Lines Matching refs:status
65 BWStatus *status = (BWStatus *)client_data;
74 if (!QuerySet(status->at_x, status->at_y)) {
76 status->value = Value(BW, event->xbutton.button);
77 status->btime = event->xbutton.time;
78 status->at_x = InBitmapX(BW, event->xbutton.x);
79 status->at_y = InBitmapY(BW, event->xbutton.y);
80 status->success = status->draw ? True : False;
81 if (status->draw)
82 (*(DrawOnePointProc)status->draw)(w,
83 status->at_x, status->at_y, status->value);
88 if (QuerySet(status->at_x, status->at_y)) {
89 status->value = Value(BW, event->xbutton.button);
90 status->btime = event->xbutton.time;
91 status->at_x = InBitmapX(BW, event->xbutton.x);
92 status->at_y = InBitmapY(BW, event->xbutton.y);
93 status->success = status->draw ? True : False;
100 if (QuerySet(status->at_x, status->at_y)) {
102 status->at_x, status->at_y)) {
103 status->at_x = InBitmapX(BW, event->xmotion.x);
104 status->at_y = InBitmapY(BW, event->xmotion.y);
105 if (status->draw)
106 (*(DrawOnePointProc)status->draw)(w,
107 status->at_x, status->at_y, status->value);
117 BWStatus *status,
122 status->at_x = NotSet;
123 status->at_y = NotSet;
124 status->draw = draw;
125 status->success = False;
126 status->state = *state;
130 FALSE, DragOnePointHandler, (XtPointer)status);
136 BWStatus *status,
140 if (status->success) {
147 FALSE, DragOnePointHandler, (XtPointer)status);
157 BWStatus *status = (BWStatus *)client_data;
166 if (QuerySet(status->at_x, status->at_y)) {
169 if (status->draw)
170 (*(DrawOnePointProc)status->draw)(w,
171 status->at_x, status->at_y, Highlight);
178 if (event->xbutton.state != status->state) return;
179 if (!QuerySet(status->at_x, status->at_y)) {
180 status->value = Value(BW, event->xbutton.button);
181 status->btime = event->xbutton.time;
182 status->at_x = InBitmapX(BW, event->xbutton.x);
183 status->at_y = InBitmapY(BW, event->xbutton.y);
184 if (status->draw)
185 (*(DrawOnePointProc)status->draw)(w,
186 status->at_x, status->at_y, Highlight);
191 if (QuerySet(status->at_x, status->at_y)) {
192 if (status->draw)
193 (*(DrawOnePointProc)status->draw)(w,
194 status->at_x, status->at_y, Highlight);
196 status->value = Value(BW, event->xbutton.button);
197 status->btime = event->xbutton.time;
198 status->at_x = InBitmapX(BW, event->xbutton.x);
199 status->at_y = InBitmapY(BW, event->xbutton.y);
200 status->success = True;
207 if (QuerySet(status->at_x, status->at_y)) {
209 status->at_x, status->at_y)) {
210 if (status->draw)
211 (*(DrawOnePointProc)status->draw)(w,
212 status->at_x, status->at_y, Highlight);
213 status->at_x = InBitmapX(BW, event->xmotion.x);
214 status->at_y = InBitmapY(BW, event->xmotion.y);
215 if (status->draw)
216 (*(DrawOnePointProc)status->draw)(w,
217 status->at_x, status->at_y, Highlight);
226 BWStatus *status,
230 status->at_x = NotSet;
231 status->at_y = NotSet;
232 status->draw = draw;
233 status->success = False;
234 status->state = *state;
239 FALSE, OnePointHandler, (XtPointer)status);
245 BWStatus *status,
249 status->at_x = 0;
250 status->at_y = 0;
251 status->draw = draw;
252 status->success = False;
253 status->state = *state;
255 if (status->draw)
256 (*(DrawOnePointProc)status->draw)(w,
257 status->at_x, status->at_y, Highlight);
262 FALSE, OnePointHandler, (XtPointer)status);
268 BWStatus *status,
272 if (status->success && draw) {
275 status->at_x, status->at_y,
276 status->value);
281 if (QuerySet(status->at_x, status->at_y))
282 if (status->draw)
283 (*(DrawOnePointProc)status->draw)(w,
284 status->at_x, status->at_y, Highlight);
289 FALSE, OnePointHandler, (XtPointer)status);
294 BWStatus *status,
298 if (status->success && draw)
300 status->at_x, status->at_y,
301 status->value);
303 if (QuerySet(status->at_x, status->at_y))
304 if (status->draw)
305 (*(DrawOnePointProc)status->draw)(w,
306 status->at_x, status->at_y, Highlight);
311 FALSE, OnePointHandler, (XtPointer)status);
323 BWStatus *status = (BWStatus *)client_data;
330 if (QuerySet(status->from_x, status->from_y) &&
331 QuerySet(status->to_x, status->to_y)) {
334 if (status->draw)
335 (*(DrawTwoPointProc)status->draw)(w,
336 status->from_x, status->from_y,
337 status->to_x, status->to_y, Highlight);
343 if (event->xbutton.state != status->state) return;
344 if (!QuerySet(status->from_x, status->from_y)) {
345 status->value = Value(BW, event->xbutton.button);
346 status->btime = event->xbutton.time;
347 status->from_x = InBitmapX(BW, event->xbutton.x);
348 status->from_y = InBitmapY(BW, event->xbutton.y);
349 status->to_x = InBitmapX(BW, event->xbutton.x);
350 status->to_y = InBitmapY(BW, event->xbutton.y);
351 if (status->draw)
352 (*(DrawTwoPointProc)status->draw)(w,
353 status->from_x, status->from_y,
354 status->to_x, status->to_y, Highlight);
359 if (QuerySet(status->from_x, status->from_y)) {
360 if (status->draw)
361 (*(DrawTwoPointProc)status->draw)(w,
362 status->from_x, status->from_y,
363 status->to_x, status->to_y, Highlight);
364 status->value = Value(BW, event->xbutton.button);
365 status->btime = event->xbutton.time;
366 status->to_x = InBitmapX(BW, event->xbutton.x);
367 status->to_y = InBitmapY(BW, event->xbutton.y);
368 status->success = True;
375 if (QuerySet(status->from_x, status->from_y)) {
376 if (QuerySet(status->to_x, status->to_y)) {
378 status->to_x, status->to_y)) {
379 if (status->draw)
380 (*(DrawTwoPointProc)status->draw)(w,
381 status->from_x, status->from_y,
382 status->to_x, status->to_y, Highlight);
383 status->to_x = InBitmapX(BW, event->xmotion.x);
384 status->to_y = InBitmapY(BW, event->xmotion.y);
385 if (status->draw)
386 (*(DrawTwoPointProc)status->draw)(w,
387 status->from_x, status->from_y,
388 status->to_x, status->to_y, Highlight);
392 status->to_x = InBitmapX(BW, event->xmotion.x);
393 status->to_y = InBitmapY(BW, event->xmotion.y);
394 if (status->draw)
395 (*(DrawTwoPointProc)status->draw)(w,
396 status->from_x, status->from_y,
397 status->to_x, status->to_y, Highlight);
406 BWStatus *status,
411 status->from_x = NotSet;
412 status->from_y = NotSet;
413 status->to_x = NotSet;
414 status->to_y = NotSet;
415 status->draw = draw;
416 status->success = False;
417 status->state = *state;
422 FALSE, TwoPointsHandler, (XtPointer)status);
427 BWStatus *status,
431 if (status->success && draw) {
434 status->from_x, status->from_y,
435 status->to_x, status->to_y,
436 status->value);
441 if (QuerySet(status->from_x, status->from_y) &&
442 QuerySet(status->to_x, status->to_y))
443 if (status->draw)
444 (*(DrawTwoPointProc)status->draw)(w,
445 status->from_x, status->from_y,
446 status->to_x, status->to_y, Highlight);
451 FALSE, TwoPointsHandler, (XtPointer)status);
456 BWStatus *status,
460 if (status->success && draw)
462 status->from_x, status->from_y,
463 status->to_x, status->to_y,
464 status->value);
466 if (QuerySet(status->from_x, status->from_y) &&
467 QuerySet(status->to_x, status->to_y))
468 if (status->draw)
469 (*(DrawTwoPointProc)status->draw)(w,
470 status->from_x, status->from_y,
471 status->to_x, status->to_y, Highlight);
476 FALSE, TwoPointsHandler, (XtPointer)status);
481 BWStatus *status,
485 if (status->success && draw)
487 status->from_x, status->from_y,
488 status->to_x, status->to_y,
489 status->btime);
491 if (QuerySet(status->from_x, status->from_y) &&
492 QuerySet(status->to_x, status->to_y))
493 if (status->draw)
494 (*(DrawTwoPointProc)status->draw)(w,
495 status->from_x, status->from_y,
496 status->to_x, status->to_y, Highlight);
501 FALSE, TwoPointsHandler, (XtPointer)status);
507 BWStatus *status,
524 BW->bitmap.request_stack[BW->bitmap.current].status;
537 BWStatus *status;
544 status = (BWStatus *)
545 BW->bitmap.request_stack[BW->bitmap.current].status;
547 status->at_x = at_x;
548 status->at_y = at_y;
549 status->value = value;
550 (*(DrawOnePointProc)status->draw) (w, at_x, at_y, Highlight);
554 BWStatus *status;
558 status = (BWStatus *)
559 BW->bitmap.request_stack[BW->bitmap.current].status;
561 status->from_x = status->to_x = at_x;
562 status->from_y = status->to_y = at_y;
563 status->value = value;
564 (*(DrawTwoPointProc)status->draw) (w, at_x, at_y, at_x, at_y, Highlight);
576 BWStatus *status = (BWStatus *)client_data;
584 if (event->xbutton.state != status->state) return;
585 if (!QuerySet(status->from_x, status->from_y)) {
587 status->value = Value(BW, event->xbutton.button);
588 status->btime = event->xbutton.time;
589 status->from_x = InBitmapX(BW, event->xbutton.x);
590 status->from_y = InBitmapY(BW, event->xbutton.y);
591 status->to_x = InBitmapX(BW, event->xbutton.x);
592 status->to_y = InBitmapY(BW, event->xbutton.y);
593 status->success = status->draw ? True : False;
594 if (status->draw)
595 (*(DrawTwoPointProc)status->draw)(w,
596 status->from_x, status->from_y,
597 status->to_x, status->to_y, status->value);
602 if (QuerySet(status->from_x, status->from_y)) {
603 status->value = Value(BW, event->xbutton.button);
604 status->btime = event->xbutton.time;
605 status->from_x = status->to_x;
606 status->from_y = status->to_y;
607 status->to_x = InBitmapX(BW, event->xbutton.x);
608 status->to_y = InBitmapY(BW, event->xbutton.y);
609 status->success = True;
616 if (QuerySet(status->from_x, status->from_y)) {
617 if (QuerySet(status->to_x, status->to_y)) {
619 status->to_x, status->to_y)) {
620 status->from_x = status->to_x;
621 status->from_y = status->to_y;
622 status->to_x = InBitmapX(BW, event->xmotion.x);
623 status->to_y = InBitmapY(BW, event->xmotion.y);
624 if (status->draw)
625 (*(DrawTwoPointProc)status->draw)(w,
626 status->from_x, status->from_y,
627 status->to_x, status->to_y, status->value);
637 BWStatus *status,
642 status->from_x = NotSet;
643 status->from_y = NotSet;
644 status->to_x = NotSet;
645 status->to_y = NotSet;
646 status->draw = draw;
647 status->success = False;
648 status->state = *state;
652 FALSE, DragTwoPointsHandler, (XtPointer)status);
657 BWStatus *status,
661 if (status->success && draw) {
662 if ((status->from_x != status->to_x)
664 (status->from_y != status->to_y))
666 status->from_x, status->from_y,
667 status->to_x, status->to_y,
668 status->value);
675 FALSE, DragTwoPointsHandler, (XtPointer)status);