# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.1.1
#
# Do not make changes to this file unless you know what you are doing - modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _oofcanvasgui
else:
    import _oofcanvasgui

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


import oofcanvas.oofcanvas

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

class RubberBand(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    __swig_destroy__ = _oofcanvasgui.delete_RubberBand

    def setLineWidth(self, arg2):
        return _oofcanvasgui.RubberBand_setLineWidth(self, arg2)

    def setColor(self, arg2):
        return _oofcanvasgui.RubberBand_setColor(self, arg2)

    def setDashed(self, arg2):
        return _oofcanvasgui.RubberBand_setDashed(self, arg2)

    def setDashLength(self, arg2):
        return _oofcanvasgui.RubberBand_setDashLength(self, arg2)

    def setDashColor(self, arg2):
        return _oofcanvasgui.RubberBand_setDashColor(self, arg2)

    def update(self, arg2):
        return _oofcanvasgui.RubberBand_update(self, arg2)

    def __init__(self):
        _oofcanvasgui.RubberBand_swiginit(self, _oofcanvasgui.new_RubberBand())

# Register RubberBand in _oofcanvasgui:
_oofcanvasgui.RubberBand_swigregister(RubberBand)
class LineRubberBand(RubberBand):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self):
        _oofcanvasgui.LineRubberBand_swiginit(self, _oofcanvasgui.new_LineRubberBand())
    __swig_destroy__ = _oofcanvasgui.delete_LineRubberBand

# Register LineRubberBand in _oofcanvasgui:
_oofcanvasgui.LineRubberBand_swigregister(LineRubberBand)
class RectangleRubberBand(RubberBand):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self):
        _oofcanvasgui.RectangleRubberBand_swiginit(self, _oofcanvasgui.new_RectangleRubberBand())
    __swig_destroy__ = _oofcanvasgui.delete_RectangleRubberBand

# Register RectangleRubberBand in _oofcanvasgui:
_oofcanvasgui.RectangleRubberBand_swigregister(RectangleRubberBand)
class CircleRubberBand(RubberBand):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self):
        _oofcanvasgui.CircleRubberBand_swiginit(self, _oofcanvasgui.new_CircleRubberBand())
    __swig_destroy__ = _oofcanvasgui.delete_CircleRubberBand

# Register CircleRubberBand in _oofcanvasgui:
_oofcanvasgui.CircleRubberBand_swigregister(CircleRubberBand)
class EllipseRubberBand(RubberBand):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self):
        _oofcanvasgui.EllipseRubberBand_swiginit(self, _oofcanvasgui.new_EllipseRubberBand())
    __swig_destroy__ = _oofcanvasgui.delete_EllipseRubberBand

# Register EllipseRubberBand in _oofcanvasgui:
_oofcanvasgui.EllipseRubberBand_swigregister(EllipseRubberBand)
class SpiderRubberBand(RubberBand):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self):
        _oofcanvasgui.SpiderRubberBand_swiginit(self, _oofcanvasgui.new_SpiderRubberBand())

    def addPoints(self, Coords):
        return _oofcanvasgui.SpiderRubberBand_addPoints(self, Coords)
    __swig_destroy__ = _oofcanvasgui.delete_SpiderRubberBand

# Register SpiderRubberBand in _oofcanvasgui:
_oofcanvasgui.SpiderRubberBand_swigregister(SpiderRubberBand)
MotionAllowed_NEVER = _oofcanvasgui.MotionAllowed_NEVER
MotionAllowed_ALWAYS = _oofcanvasgui.MotionAllowed_ALWAYS
MotionAllowed_MOUSEDOWN = _oofcanvasgui.MotionAllowed_MOUSEDOWN
class PythonCanvas(oofcanvas.oofcanvas.OffScreenCanvas):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, arg2, ppu):
        _oofcanvasgui.PythonCanvas_swiginit(self, _oofcanvasgui.new_PythonCanvas(arg2, ppu))
    __swig_destroy__ = _oofcanvasgui.delete_PythonCanvas

    def destroy(self):
        return _oofcanvasgui.PythonCanvas_destroy(self)

    def widgetWidth(self):
        return _oofcanvasgui.PythonCanvas_widgetWidth(self)

    def widgetHeight(self):
        return _oofcanvasgui.PythonCanvas_widgetHeight(self)

    def show(self):
        return _oofcanvasgui.PythonCanvas_show(self)

    def zoomAbout(self, arg2, arg3):
        return _oofcanvasgui.PythonCanvas_zoomAbout(self, arg2, arg3)

    def zoomToFill(self):
        return _oofcanvasgui.PythonCanvas_zoomToFill(self)

    def zoom(self, arg2):
        return _oofcanvasgui.PythonCanvas_zoom(self, arg2)

    def center(self):
        return _oofcanvasgui.PythonCanvas_center(self)

    def visibleRegion(self):
        return _oofcanvasgui.PythonCanvas_visibleRegion(self)

    def setMouseCallback(self, arg2, arg3):
        return _oofcanvasgui.PythonCanvas_setMouseCallback(self, arg2, arg3)

    def setResizeCallback(self, arg2, arg3):
        return _oofcanvasgui.PythonCanvas_setResizeCallback(self, arg2, arg3)

    def allowMotionEvents(self, arg2):
        return _oofcanvasgui.PythonCanvas_allowMotionEvents(self, arg2)

    def setRubberBand(self, arg2):
        return _oofcanvasgui.PythonCanvas_setRubberBand(self, arg2)

    def removeRubberBand(self):
        return _oofcanvasgui.PythonCanvas_removeRubberBand(self)

# Register PythonCanvas in _oofcanvasgui:
_oofcanvasgui.PythonCanvas_swigregister(PythonCanvas)

