Refactor: move SendButtonEvent() into wxUIActionSimulatorX11Impl
Make the function a method of the class in preparation for the next commit.
This commit is contained in:
@@ -52,10 +52,13 @@ private:
|
|||||||
// This class has no public ctors, use Get() instead.
|
// This class has no public ctors, use Get() instead.
|
||||||
wxUIActionSimulatorX11Impl() { }
|
wxUIActionSimulatorX11Impl() { }
|
||||||
|
|
||||||
|
// Common implementation of Mouse{Down,Up}()
|
||||||
|
static void SendButtonEvent(int button, bool isDown);
|
||||||
|
|
||||||
wxDECLARE_NO_COPY_CLASS(wxUIActionSimulatorX11Impl);
|
wxDECLARE_NO_COPY_CLASS(wxUIActionSimulatorX11Impl);
|
||||||
};
|
};
|
||||||
|
|
||||||
void SendButtonEvent(int button, bool isDown)
|
void wxUIActionSimulatorX11Impl::SendButtonEvent(int button, bool isDown)
|
||||||
{
|
{
|
||||||
int xbutton;
|
int xbutton;
|
||||||
switch (button)
|
switch (button)
|
||||||
|
Reference in New Issue
Block a user