1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13enum wxMouseButton 14{ 15 wxMOUSE_BTN_ANY, 16 wxMOUSE_BTN_NONE, 17 wxMOUSE_BTN_LEFT, 18 wxMOUSE_BTN_MIDDLE, 19 wxMOUSE_BTN_RIGHT, 20 wxMOUSE_BTN_AUX1, 21 wxMOUSE_BTN_AUX2, 22 wxMOUSE_BTN_MAX 23}; 24 25class wxMouseState : wxKeyboardState 26{ 27 %Docstring 28 MouseState() 29 30 Represents the mouse state. 31 %End 32 %TypeHeaderCode 33 #include <wx/mousestate.h> 34 %End 35 36public: 37 wxMouseState(); 38 39 wxPoint GetPosition() const; 40 %Docstring 41 GetPosition() -> Point 42 43 Returns the physical mouse position. 44 %End 45 46 wxCoord GetX() const; 47 %Docstring 48 GetX() -> Coord 49 50 Returns X coordinate of the physical mouse event position. 51 %End 52 53 wxCoord GetY() const; 54 %Docstring 55 GetY() -> Coord 56 57 Returns Y coordinate of the physical mouse event position. 58 %End 59 60 bool LeftIsDown() const; 61 %Docstring 62 LeftIsDown() -> bool 63 64 Returns true if the left mouse button is currently down. 65 %End 66 67 bool MiddleIsDown() const; 68 %Docstring 69 MiddleIsDown() -> bool 70 71 Returns true if the middle mouse button is currently down. 72 %End 73 74 bool RightIsDown() const; 75 %Docstring 76 RightIsDown() -> bool 77 78 Returns true if the right mouse button is currently down. 79 %End 80 81 bool Aux1IsDown() const; 82 %Docstring 83 Aux1IsDown() -> bool 84 85 Returns true if the first extra button mouse button is currently down. 86 %End 87 88 bool Aux2IsDown() const; 89 %Docstring 90 Aux2IsDown() -> bool 91 92 Returns true if the second extra button mouse button is currently 93 down. 94 %End 95 96 void SetX( 97 wxCoord x 98 ); 99 %Docstring 100 SetX(x) 101 %End 102 103 void SetY( 104 wxCoord y 105 ); 106 %Docstring 107 SetY(y) 108 %End 109 110 void SetPosition( 111 wxPoint pos 112 ); 113 %Docstring 114 SetPosition(pos) 115 %End 116 117 void SetLeftDown( 118 bool down 119 ); 120 %Docstring 121 SetLeftDown(down) 122 %End 123 124 void SetMiddleDown( 125 bool down 126 ); 127 %Docstring 128 SetMiddleDown(down) 129 %End 130 131 void SetRightDown( 132 bool down 133 ); 134 %Docstring 135 SetRightDown(down) 136 %End 137 138 void SetAux1Down( 139 bool down 140 ); 141 %Docstring 142 SetAux1Down(down) 143 %End 144 145 void SetAux2Down( 146 bool down 147 ); 148 %Docstring 149 SetAux2Down(down) 150 %End 151 152 void SetState( 153 const wxMouseState & state 154 ); 155 %Docstring 156 SetState(state) 157 %End 158 159 %Property(name=x, get=GetX, set=SetX) 160 %Property(name=y, get=GetY, set=SetY) 161 %Property(name=X, get=GetX, set=SetX) 162 %Property(name=Y, get=GetY, set=SetY) 163 %Property(name=leftIsDown, get=LeftIsDown, set=SetLeftDown) 164 %Property(name=middleIsDown, get=MiddleIsDown, set=SetMiddleDown) 165 %Property(name=rightIsDown, get=RightIsDown, set=SetRightDown) 166 %Property(name=aux1IsDown, get=Aux1IsDown, set=SetAux1Down) 167 %Property(name=aux2IsDown, get=Aux2IsDown, set=SetAux2Down) 168 %Property(name=Position, get=GetPosition, set=SetPosition) 169}; // end of class wxMouseState 170 171 172 173//--------------------------------------------------------------------------- 174 175