# Path: flexlay/math/point.py
# class Point:
# 
#     @staticmethod
#     def from_qt(qpoint):
#         return Point(qpoint.x(), qpoint.y())
# 
#     def __init__(self, arg1=None, arg2=None):
#         if arg1 is None and arg2 is None:
#             self.x = 0
#             self.y = 0
#         elif arg2 is None:
#             self.x = arg1.x
#             self.y = arg1.y
#         else:
#             self.x = arg1
#             self.y = arg2
# 
#     def copy(self):
#         return Point(self.x, self.y)
# 
#     def __add__(self, rhs):
#         return Point(self.x + rhs.x, self.y + rhs.y)
# 
#     def __sub__(self, rhs):
#         return Point(self.x - rhs.x, self.y - rhs.y)
# 
#     def __mul__(self, rhs):
#         return Point(self.x * rhs, self.y * rhs)
# 
#     def __rmul__(self, rhs):
#         return Point(self.x * rhs, self.y * rhs)
# 
#     def __eq__(self, rhs):
#         return self.x == rhs.x and self.y == rhs.y
# 
#     def __ne__(self, rhs):
#         return not self.__eq__(rhs)
# 
#     def to_qt(self):
#         return QPoint(self.x, self.y)
# 
#     def __str__(self):
#         return "Point({}, {})".format(self.x, self.y)


import logging
from PyQt5.QtCore import Qt
from flexlay.math import Point
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.





class InputEvent:

    MOUSE_LEFT = 1
    MOUSE_RIGHT = 2
    MOUSE_MIDDLE = 3
    MOUSE_WHEEL_UP = 4
    MOUSE_WHEEL_DOWN = 5
    MOUSE_NO_BUTTON = 6

    MOD_SHIFT = (1 << 0)
    MOD_CTRL = (1 << 1)
    MOD_ALT = (1 << 2)

    def __init__(self):
        self.kind = InputEvent.MOUSE_NO_BUTTON
        self.mouse_pos = None
        self.mod = 0

    @staticmethod
    def from_qt(event):
        result = InputEvent()


# Path: flexlay/math/point.py
# class Point:
# 
#     @staticmethod
#     def from_qt(qpoint):
#         return Point(qpoint.x(), qpoint.y())
# 
#     def __init__(self, arg1=None, arg2=None):
#         if arg1 is None and arg2 is None:
#             self.x = 0
#             self.y = 0
#         elif arg2 is None:
#             self.x = arg1.x
#             self.y = arg1.y
#         else:
#             self.x = arg1
#             self.y = arg2
# 
#     def copy(self):
#         return Point(self.x, self.y)
# 
#     def __add__(self, rhs):
#         return Point(self.x + rhs.x, self.y + rhs.y)
# 
#     def __sub__(self, rhs):
#         return Point(self.x - rhs.x, self.y - rhs.y)
# 
#     def __mul__(self, rhs):
#         return Point(self.x * rhs, self.y * rhs)
# 
#     def __rmul__(self, rhs):
#         return Point(self.x * rhs, self.y * rhs)
# 
#     def __eq__(self, rhs):
#         return self.x == rhs.x and self.y == rhs.y
# 
#     def __ne__(self, rhs):
#         return not self.__eq__(rhs)
# 
#     def to_qt(self):
#         return QPoint(self.x, self.y)
# 
#     def __str__(self):
#         return "Point({}, {})".format(self.x, self.y)


# Path: flexlay/input_event.py
import logging
from PyQt5.QtCore import Qt
from flexlay.math import Point

#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.





class InputEvent:

    MOUSE_LEFT = 1
    MOUSE_RIGHT = 2
    MOUSE_MIDDLE = 3
    MOUSE_WHEEL_UP = 4
    MOUSE_WHEEL_DOWN = 5
    MOUSE_NO_BUTTON = 6

    MOD_SHIFT = (1 << 0)
    MOD_CTRL = (1 << 1)
    MOD_ALT = (1 << 2)

    def __init__(self):
        self.kind = InputEvent.MOUSE_NO_BUTTON
        self.mouse_pos = None
        self.mod = 0

    @staticmethod
    def from_qt(event):
        result = InputEvent()


        result.mouse_pos = Point(event.x(), event.y())