* Do all things to make a button look clicked and mark it to be * unclicked in a few ticks. * @param widget the widget to "click" */
| 595 | * @param widget the widget to "click" |
| 596 | */ |
| 597 | void Window::HandleButtonClick(WidgetID widget) |
| 598 | { |
| 599 | /* Button click for this widget may already have been handled. */ |
| 600 | if (this->IsWidgetLowered(widget) && this->timeout_timer == TIMEOUT_DURATION) return; |
| 601 | |
| 602 | this->LowerWidget(widget); |
| 603 | this->SetTimeout(); |
| 604 | this->SetWidgetDirty(widget); |
| 605 | SndClickBeep(); |
| 606 | } |
| 607 | |
| 608 | static void StartWindowDrag(Window *w); |
| 609 | static void StartWindowSizing(Window *w, bool to_left); |
no test coverage detected