File: uiaction.h

package info (click to toggle)
libwx-perl 1%3A0.9932-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,300 kB
  • sloc: cpp: 11,064; perl: 8,603; ansic: 711; makefile: 53
file content (59 lines) | stat: -rw-r--r-- 1,509 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%module{Wx};

/////////////////////////////////////////////////////////////////////////////
// Name:        uiaction.h
// Purpose:     interface of wxUIActionSimulator
// Author:      wxWidgets team
// RCS-ID:      $Id$
// Licence:     wxWindows licence
/////////////////////////////////////////////////////////////////////////////

#if WXPERL_W_VERSION_GE( 2, 9, 2 )

#include <wx/uiaction.h>

%loadplugin{build::Wx::XSP::Overload};

%name{Wx::UIActionSimulator} class wxUIActionSimulator
{

%{
static void
wxUIActionSimulator::CLONE()
  CODE:
    wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
%}

public:
   
    wxUIActionSimulator();
    
    ~wxUIActionSimulator()
        %code%{  wxPli_thread_sv_unregister( aTHX_ "Wx::UIActionSimulator", THIS, ST(0) );
                 delete THIS;
               %};

    %name{MouseMoveCoords} bool MouseMove(long x, long y) %Overload;

    %name{MouseMovePoint} bool MouseMove(const wxPoint& point) %Overload;

    bool MouseDown(int button = wxMOUSE_BTN_LEFT);

    bool MouseUp(int button = wxMOUSE_BTN_LEFT);

    bool MouseClick(int button = wxMOUSE_BTN_LEFT);

    bool MouseDblClick(int button = wxMOUSE_BTN_LEFT);

    bool MouseDragDrop(long x1, long y1, long x2, long y2, int button = wxMOUSE_BTN_LEFT);

    bool KeyDown(int keycode, int modifiers = wxMOD_NONE);

    bool KeyUp(int keycode, int modifiers = wxMOD_NONE);

    bool Char(int keycode, int modifiers = wxMOD_NONE);

    bool Text(const wxString& text);
};

#endif