MCPcopy Create free account
hub / github.com/audacity/audacity / PushButton

Method PushButton

src/widgets/Grabber.cpp:168–180  ·  view source on GitHub ↗

Change the button state

Source from the content-addressed store, hash-verified

166// Change the button state
167//
168void Grabber::PushButton(bool state )
169{
170 if( mAsSpacer )
171 return;
172 if (!state)
173 mPressed = state;
174 wxRect r = GetRect();
175 mOver = r.Contains(ScreenToClient(wxGetMousePosition()));
176
177 // Redraw button
178 mPressed = state;
179 Refresh(false);
180}
181
182//
183// Handle left button down events

Callers 1

SetDockedMethod · 0.80

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected