Refactor: move SendButtonEvent() into wxUIActionSimulatorX11Impl

Make the function a method of the class in preparation for the next commit.
This commit is contained in:
Vadim Zeitlin
2016-05-21 19:04:45 +02:00
parent cfc1681b4c
commit d1b537f953

View File

@@ -52,10 +52,13 @@ private:
// This class has no public ctors, use Get() instead.
wxUIActionSimulatorX11Impl() { }
// Common implementation of Mouse{Down,Up}()
static void SendButtonEvent(int button, bool isDown);
wxDECLARE_NO_COPY_CLASS(wxUIActionSimulatorX11Impl);
};
void SendButtonEvent(int button, bool isDown)
void wxUIActionSimulatorX11Impl::SendButtonEvent(int button, bool isDown)
{
int xbutton;
switch (button)