# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# 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
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_mypaintlib')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_mypaintlib')
    _mypaintlib = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_mypaintlib', [dirname(__file__)])
        except ImportError:
            import _mypaintlib
            return _mypaintlib
        try:
            _mod = imp.load_module('_mypaintlib', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _mypaintlib = swig_import_helper()
    del swig_import_helper
else:
    import _mypaintlib
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


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,)

try:
    _object = object
    _newclass = 1
except __builtin__.Exception:
    class _object:
        pass
    _newclass = 0

class SwigPyIterator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _mypaintlib.delete_SwigPyIterator

    def value(self):
        return _mypaintlib.SwigPyIterator_value(self)

    def incr(self, n=1):
        return _mypaintlib.SwigPyIterator_incr(self, n)

    def decr(self, n=1):
        return _mypaintlib.SwigPyIterator_decr(self, n)

    def distance(self, x):
        return _mypaintlib.SwigPyIterator_distance(self, x)

    def equal(self, x):
        return _mypaintlib.SwigPyIterator_equal(self, x)

    def copy(self):
        return _mypaintlib.SwigPyIterator_copy(self)

    def next(self):
        return _mypaintlib.SwigPyIterator_next(self)

    def __next__(self):
        return _mypaintlib.SwigPyIterator___next__(self)

    def previous(self):
        return _mypaintlib.SwigPyIterator_previous(self)

    def advance(self, n):
        return _mypaintlib.SwigPyIterator_advance(self, n)

    def __eq__(self, x):
        return _mypaintlib.SwigPyIterator___eq__(self, x)

    def __ne__(self, x):
        return _mypaintlib.SwigPyIterator___ne__(self, x)

    def __iadd__(self, n):
        return _mypaintlib.SwigPyIterator___iadd__(self, n)

    def __isub__(self, n):
        return _mypaintlib.SwigPyIterator___isub__(self, n)

    def __add__(self, n):
        return _mypaintlib.SwigPyIterator___add__(self, n)

    def __sub__(self, *args):
        return _mypaintlib.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self
SwigPyIterator_swigregister = _mypaintlib.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
cvar = _mypaintlib.cvar
heavy_debug = cvar.heavy_debug

class IntVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
    __repr__ = _swig_repr

    def iterator(self):
        return _mypaintlib.IntVector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _mypaintlib.IntVector___nonzero__(self)

    def __bool__(self):
        return _mypaintlib.IntVector___bool__(self)

    def __len__(self):
        return _mypaintlib.IntVector___len__(self)

    def __getslice__(self, i, j):
        return _mypaintlib.IntVector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _mypaintlib.IntVector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _mypaintlib.IntVector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _mypaintlib.IntVector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _mypaintlib.IntVector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _mypaintlib.IntVector___setitem__(self, *args)

    def pop(self):
        return _mypaintlib.IntVector_pop(self)

    def append(self, x):
        return _mypaintlib.IntVector_append(self, x)

    def empty(self):
        return _mypaintlib.IntVector_empty(self)

    def size(self):
        return _mypaintlib.IntVector_size(self)

    def swap(self, v):
        return _mypaintlib.IntVector_swap(self, v)

    def begin(self):
        return _mypaintlib.IntVector_begin(self)

    def end(self):
        return _mypaintlib.IntVector_end(self)

    def rbegin(self):
        return _mypaintlib.IntVector_rbegin(self)

    def rend(self):
        return _mypaintlib.IntVector_rend(self)

    def clear(self):
        return _mypaintlib.IntVector_clear(self)

    def get_allocator(self):
        return _mypaintlib.IntVector_get_allocator(self)

    def pop_back(self):
        return _mypaintlib.IntVector_pop_back(self)

    def erase(self, *args):
        return _mypaintlib.IntVector_erase(self, *args)

    def __init__(self, *args):
        this = _mypaintlib.new_IntVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def push_back(self, x):
        return _mypaintlib.IntVector_push_back(self, x)

    def front(self):
        return _mypaintlib.IntVector_front(self)

    def back(self):
        return _mypaintlib.IntVector_back(self)

    def assign(self, n, x):
        return _mypaintlib.IntVector_assign(self, n, x)

    def resize(self, *args):
        return _mypaintlib.IntVector_resize(self, *args)

    def insert(self, *args):
        return _mypaintlib.IntVector_insert(self, *args)

    def reserve(self, n):
        return _mypaintlib.IntVector_reserve(self, n)

    def capacity(self):
        return _mypaintlib.IntVector_capacity(self)
    __swig_destroy__ = _mypaintlib.delete_IntVector
IntVector_swigregister = _mypaintlib.IntVector_swigregister
IntVector_swigregister(IntVector)

class DoubleVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, DoubleVector, name)
    __repr__ = _swig_repr

    def iterator(self):
        return _mypaintlib.DoubleVector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _mypaintlib.DoubleVector___nonzero__(self)

    def __bool__(self):
        return _mypaintlib.DoubleVector___bool__(self)

    def __len__(self):
        return _mypaintlib.DoubleVector___len__(self)

    def __getslice__(self, i, j):
        return _mypaintlib.DoubleVector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _mypaintlib.DoubleVector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _mypaintlib.DoubleVector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _mypaintlib.DoubleVector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _mypaintlib.DoubleVector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _mypaintlib.DoubleVector___setitem__(self, *args)

    def pop(self):
        return _mypaintlib.DoubleVector_pop(self)

    def append(self, x):
        return _mypaintlib.DoubleVector_append(self, x)

    def empty(self):
        return _mypaintlib.DoubleVector_empty(self)

    def size(self):
        return _mypaintlib.DoubleVector_size(self)

    def swap(self, v):
        return _mypaintlib.DoubleVector_swap(self, v)

    def begin(self):
        return _mypaintlib.DoubleVector_begin(self)

    def end(self):
        return _mypaintlib.DoubleVector_end(self)

    def rbegin(self):
        return _mypaintlib.DoubleVector_rbegin(self)

    def rend(self):
        return _mypaintlib.DoubleVector_rend(self)

    def clear(self):
        return _mypaintlib.DoubleVector_clear(self)

    def get_allocator(self):
        return _mypaintlib.DoubleVector_get_allocator(self)

    def pop_back(self):
        return _mypaintlib.DoubleVector_pop_back(self)

    def erase(self, *args):
        return _mypaintlib.DoubleVector_erase(self, *args)

    def __init__(self, *args):
        this = _mypaintlib.new_DoubleVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def push_back(self, x):
        return _mypaintlib.DoubleVector_push_back(self, x)

    def front(self):
        return _mypaintlib.DoubleVector_front(self)

    def back(self):
        return _mypaintlib.DoubleVector_back(self)

    def assign(self, n, x):
        return _mypaintlib.DoubleVector_assign(self, n, x)

    def resize(self, *args):
        return _mypaintlib.DoubleVector_resize(self, *args)

    def insert(self, *args):
        return _mypaintlib.DoubleVector_insert(self, *args)

    def reserve(self, n):
        return _mypaintlib.DoubleVector_reserve(self, n)

    def capacity(self):
        return _mypaintlib.DoubleVector_capacity(self)
    __swig_destroy__ = _mypaintlib.delete_DoubleVector
DoubleVector_swigregister = _mypaintlib.DoubleVector_swigregister
DoubleVector_swigregister(DoubleVector)

class Rect(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Rect, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Rect, name)
    __repr__ = _swig_repr
    __swig_setmethods__["x"] = _mypaintlib.Rect_x_set
    __swig_getmethods__["x"] = _mypaintlib.Rect_x_get
    if _newclass:
        x = _swig_property(_mypaintlib.Rect_x_get, _mypaintlib.Rect_x_set)
    __swig_setmethods__["y"] = _mypaintlib.Rect_y_set
    __swig_getmethods__["y"] = _mypaintlib.Rect_y_get
    if _newclass:
        y = _swig_property(_mypaintlib.Rect_y_get, _mypaintlib.Rect_y_set)
    __swig_setmethods__["w"] = _mypaintlib.Rect_w_set
    __swig_getmethods__["w"] = _mypaintlib.Rect_w_get
    if _newclass:
        w = _swig_property(_mypaintlib.Rect_w_get, _mypaintlib.Rect_w_set)
    __swig_setmethods__["h"] = _mypaintlib.Rect_h_set
    __swig_getmethods__["h"] = _mypaintlib.Rect_h_get
    if _newclass:
        h = _swig_property(_mypaintlib.Rect_h_get, _mypaintlib.Rect_h_set)

    def __init__(self):
        this = _mypaintlib.new_Rect()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_Rect
Rect_swigregister = _mypaintlib.Rect_swigregister
Rect_swigregister(Rect)

class Surface(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Surface, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Surface, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _mypaintlib.delete_Surface

    def get_surface_interface(self):
        return _mypaintlib.Surface_get_surface_interface(self)
Surface_swigregister = _mypaintlib.Surface_swigregister
Surface_swigregister(Surface)

class Brush(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Brush, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Brush, name)
    __repr__ = _swig_repr

    def __init__(self):
        this = _mypaintlib.new_Brush()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_Brush

    def reset(self):
        return _mypaintlib.Brush_reset(self)

    def new_stroke(self):
        return _mypaintlib.Brush_new_stroke(self)

    def set_base_value(self, id, value):
        return _mypaintlib.Brush_set_base_value(self, id, value)

    def set_mapping_n(self, id, input, n):
        return _mypaintlib.Brush_set_mapping_n(self, id, input, n)

    def set_mapping_point(self, id, input, index, x, y):
        return _mypaintlib.Brush_set_mapping_point(self, id, input, index, x, y)

    def get_state(self, i):
        return _mypaintlib.Brush_get_state(self, i)

    def set_state(self, i, value):
        return _mypaintlib.Brush_set_state(self, i, value)

    def stroke_to(self, surface, x, y, pressure, xtilt, ytilt, dtime):
        return _mypaintlib.Brush_stroke_to(self, surface, x, y, pressure, xtilt, ytilt, dtime)

    def get_total_stroke_painting_time(self):
        return _mypaintlib.Brush_get_total_stroke_painting_time(self)

    def set_print_inputs(self, enabled):
        return _mypaintlib.Brush_set_print_inputs(self, enabled)
Brush_swigregister = _mypaintlib.Brush_swigregister
Brush_swigregister(Brush)

class MappingWrapper(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, MappingWrapper, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, MappingWrapper, name)
    __repr__ = _swig_repr

    def __init__(self, inputs_):
        this = _mypaintlib.new_MappingWrapper(inputs_)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_MappingWrapper

    def set_n(self, input, n):
        return _mypaintlib.MappingWrapper_set_n(self, input, n)

    def set_point(self, input, index, x, y):
        return _mypaintlib.MappingWrapper_set_point(self, input, index, x, y)

    def is_constant(self):
        return _mypaintlib.MappingWrapper_is_constant(self)

    def calculate(self, data):
        return _mypaintlib.MappingWrapper_calculate(self, data)

    def calculate_single_input(self, input):
        return _mypaintlib.MappingWrapper_calculate_single_input(self, input)
MappingWrapper_swigregister = _mypaintlib.MappingWrapper_swigregister
MappingWrapper_swigregister(MappingWrapper)

class PythonBrush(Brush):
    __swig_setmethods__ = {}
    for _s in [Brush]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, PythonBrush, name, value)
    __swig_getmethods__ = {}
    for _s in [Brush]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, PythonBrush, name)
    __repr__ = _swig_repr

    def get_states_as_array(self):
        return _mypaintlib.PythonBrush_get_states_as_array(self)

    def set_states_from_array(self, obj):
        return _mypaintlib.PythonBrush_set_states_from_array(self, obj)

    def stroke_to(self, surface, x, y, pressure, xtilt, ytilt, dtime):
        return _mypaintlib.PythonBrush_stroke_to(self, surface, x, y, pressure, xtilt, ytilt, dtime)

    def __init__(self):
        this = _mypaintlib.new_PythonBrush()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_PythonBrush
PythonBrush_swigregister = _mypaintlib.PythonBrush_swigregister
PythonBrush_swigregister(PythonBrush)

class TiledSurface(Surface):
    __swig_setmethods__ = {}
    for _s in [Surface]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, TiledSurface, name, value)
    __swig_getmethods__ = {}
    for _s in [Surface]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, TiledSurface, name)
    __repr__ = _swig_repr

    def __init__(self, self_):
        this = _mypaintlib.new_TiledSurface(self_)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_TiledSurface

    def set_symmetry_state(self, active, center_x):
        return _mypaintlib.TiledSurface_set_symmetry_state(self, active, center_x)

    def begin_atomic(self):
        return _mypaintlib.TiledSurface_begin_atomic(self)

    def end_atomic(self):
        return _mypaintlib.TiledSurface_end_atomic(self)

    def draw_dab(self, x, y, radius, color_r, color_g, color_b, opaque, hardness=0.5, color_a=1.0, aspect_ratio=1.0, angle=0.0, lock_alpha=0.0, colorize=0.0):
        return _mypaintlib.TiledSurface_draw_dab(self, x, y, radius, color_r, color_g, color_b, opaque, hardness, color_a, aspect_ratio, angle, lock_alpha, colorize)

    def get_color(self, x, y, radius):
        return _mypaintlib.TiledSurface_get_color(self, x, y, radius)

    def get_alpha(self, x, y, radius):
        return _mypaintlib.TiledSurface_get_alpha(self, x, y, radius)

    def get_surface_interface(self):
        return _mypaintlib.TiledSurface_get_surface_interface(self)
TiledSurface_swigregister = _mypaintlib.TiledSurface_swigregister
TiledSurface_swigregister(TiledSurface)
TILE_SIZE = cvar.TILE_SIZE
MAX_MIPMAP_LEVEL = cvar.MAX_MIPMAP_LEVEL


def get_module(name):
    return _mypaintlib.get_module(name)
get_module = _mypaintlib.get_module

def new_py_tiled_surface(pModule):
    return _mypaintlib.new_py_tiled_surface(pModule)
new_py_tiled_surface = _mypaintlib.new_py_tiled_surface

def mypaint_python_surface_factory(user_data):
    return _mypaintlib.mypaint_python_surface_factory(user_data)
mypaint_python_surface_factory = _mypaintlib.mypaint_python_surface_factory

def run_brushlib_tests():
    return _mypaintlib.run_brushlib_tests()
run_brushlib_tests = _mypaintlib.run_brushlib_tests

def tile_downscale_rgba16(src, dst, dst_x, dst_y):
    return _mypaintlib.tile_downscale_rgba16(src, dst, dst_x, dst_y)
tile_downscale_rgba16 = _mypaintlib.tile_downscale_rgba16

def tile_copy_rgba16_into_rgba16(src, dst):
    return _mypaintlib.tile_copy_rgba16_into_rgba16(src, dst)
tile_copy_rgba16_into_rgba16 = _mypaintlib.tile_copy_rgba16_into_rgba16

def tile_clear_rgba16(dst):
    return _mypaintlib.tile_clear_rgba16(dst)
tile_clear_rgba16 = _mypaintlib.tile_clear_rgba16

def tile_clear_rgba8(dst):
    return _mypaintlib.tile_clear_rgba8(dst)
tile_clear_rgba8 = _mypaintlib.tile_clear_rgba8

def tile_convert_rgba16_to_rgba8(src, dst):
    return _mypaintlib.tile_convert_rgba16_to_rgba8(src, dst)
tile_convert_rgba16_to_rgba8 = _mypaintlib.tile_convert_rgba16_to_rgba8

def tile_convert_rgbu16_to_rgbu8(src, dst):
    return _mypaintlib.tile_convert_rgbu16_to_rgbu8(src, dst)
tile_convert_rgbu16_to_rgbu8 = _mypaintlib.tile_convert_rgbu16_to_rgbu8

def tile_convert_rgba8_to_rgba16(src, dst):
    return _mypaintlib.tile_convert_rgba8_to_rgba16(src, dst)
tile_convert_rgba8_to_rgba16 = _mypaintlib.tile_convert_rgba8_to_rgba16

def tile_rgba2flat(dst_obj, bg_obj):
    return _mypaintlib.tile_rgba2flat(dst_obj, bg_obj)
tile_rgba2flat = _mypaintlib.tile_rgba2flat

def tile_flat2rgba(dst_obj, bg_obj):
    return _mypaintlib.tile_flat2rgba(dst_obj, bg_obj)
tile_flat2rgba = _mypaintlib.tile_flat2rgba

def tile_perceptual_change_strokemap(a_obj, b_obj, res_obj):
    return _mypaintlib.tile_perceptual_change_strokemap(a_obj, b_obj, res_obj)
tile_perceptual_change_strokemap = _mypaintlib.tile_perceptual_change_strokemap
CombineNormal = _mypaintlib.CombineNormal
CombineMultiply = _mypaintlib.CombineMultiply
CombineScreen = _mypaintlib.CombineScreen
CombineOverlay = _mypaintlib.CombineOverlay
CombineDarken = _mypaintlib.CombineDarken
CombineLighten = _mypaintlib.CombineLighten
CombineHardLight = _mypaintlib.CombineHardLight
CombineSoftLight = _mypaintlib.CombineSoftLight
CombineColorBurn = _mypaintlib.CombineColorBurn
CombineColorDodge = _mypaintlib.CombineColorDodge
CombineDifference = _mypaintlib.CombineDifference
CombineExclusion = _mypaintlib.CombineExclusion
CombineHue = _mypaintlib.CombineHue
CombineSaturation = _mypaintlib.CombineSaturation
CombineColor = _mypaintlib.CombineColor
CombineLuminosity = _mypaintlib.CombineLuminosity
CombineLighter = _mypaintlib.CombineLighter
CombineDestinationIn = _mypaintlib.CombineDestinationIn
CombineDestinationOut = _mypaintlib.CombineDestinationOut
CombineSourceAtop = _mypaintlib.CombineSourceAtop
CombineDestinationAtop = _mypaintlib.CombineDestinationAtop
NumCombineModes = _mypaintlib.NumCombineModes

def combine_mode_get_info(mode):
    return _mypaintlib.combine_mode_get_info(mode)
combine_mode_get_info = _mypaintlib.combine_mode_get_info

def tile_combine(mode, src_obj, dst_obj, dst_has_alpha, src_opacity):
    return _mypaintlib.tile_combine(mode, src_obj, dst_obj, dst_has_alpha, src_opacity)
tile_combine = _mypaintlib.tile_combine
class SCWSColorSelector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SCWSColorSelector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SCWSColorSelector, name)
    __repr__ = _swig_repr

    def get_size(self):
        return _mypaintlib.SCWSColorSelector_get_size(self)
    __swig_setmethods__["brush_h"] = _mypaintlib.SCWSColorSelector_brush_h_set
    __swig_getmethods__["brush_h"] = _mypaintlib.SCWSColorSelector_brush_h_get
    if _newclass:
        brush_h = _swig_property(_mypaintlib.SCWSColorSelector_brush_h_get, _mypaintlib.SCWSColorSelector_brush_h_set)
    __swig_setmethods__["brush_s"] = _mypaintlib.SCWSColorSelector_brush_s_set
    __swig_getmethods__["brush_s"] = _mypaintlib.SCWSColorSelector_brush_s_get
    if _newclass:
        brush_s = _swig_property(_mypaintlib.SCWSColorSelector_brush_s_get, _mypaintlib.SCWSColorSelector_brush_s_set)
    __swig_setmethods__["brush_v"] = _mypaintlib.SCWSColorSelector_brush_v_set
    __swig_getmethods__["brush_v"] = _mypaintlib.SCWSColorSelector_brush_v_get
    if _newclass:
        brush_v = _swig_property(_mypaintlib.SCWSColorSelector_brush_v_get, _mypaintlib.SCWSColorSelector_brush_v_set)

    def set_brush_color(self, h, s, v):
        return _mypaintlib.SCWSColorSelector_set_brush_color(self, h, s, v)

    def get_hsva_at(self, h, s, v, a, x, y, adjust_color=True, only_colors=True, mark_h=0.0):
        return _mypaintlib.SCWSColorSelector_get_hsva_at(self, h, s, v, a, x, y, adjust_color, only_colors, mark_h)

    def pick_color_at(self, x, y):
        return _mypaintlib.SCWSColorSelector_pick_color_at(self, x, y)

    def render(self, obj):
        return _mypaintlib.SCWSColorSelector_render(self, obj)

    def __init__(self):
        this = _mypaintlib.new_SCWSColorSelector()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_SCWSColorSelector
SCWSColorSelector_swigregister = _mypaintlib.SCWSColorSelector_swigregister
SCWSColorSelector_swigregister(SCWSColorSelector)
colorring_size = cvar.colorring_size
center = cvar.center
RAD_TO_ONE = cvar.RAD_TO_ONE
TWO_PI = cvar.TWO_PI
ONE_OVER_THREE = cvar.ONE_OVER_THREE
TWO_OVER_THREE = cvar.TWO_OVER_THREE

class ColorChangerWash(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ColorChangerWash, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ColorChangerWash, name)
    __repr__ = _swig_repr
    __swig_setmethods__["brush_h"] = _mypaintlib.ColorChangerWash_brush_h_set
    __swig_getmethods__["brush_h"] = _mypaintlib.ColorChangerWash_brush_h_get
    if _newclass:
        brush_h = _swig_property(_mypaintlib.ColorChangerWash_brush_h_get, _mypaintlib.ColorChangerWash_brush_h_set)
    __swig_setmethods__["brush_s"] = _mypaintlib.ColorChangerWash_brush_s_set
    __swig_getmethods__["brush_s"] = _mypaintlib.ColorChangerWash_brush_s_get
    if _newclass:
        brush_s = _swig_property(_mypaintlib.ColorChangerWash_brush_s_get, _mypaintlib.ColorChangerWash_brush_s_set)
    __swig_setmethods__["brush_v"] = _mypaintlib.ColorChangerWash_brush_v_set
    __swig_getmethods__["brush_v"] = _mypaintlib.ColorChangerWash_brush_v_get
    if _newclass:
        brush_v = _swig_property(_mypaintlib.ColorChangerWash_brush_v_get, _mypaintlib.ColorChangerWash_brush_v_set)

    def set_brush_color(self, h, s, v):
        return _mypaintlib.ColorChangerWash_set_brush_color(self, h, s, v)

    def get_size(self):
        return _mypaintlib.ColorChangerWash_get_size(self)

    def render(self, obj):
        return _mypaintlib.ColorChangerWash_render(self, obj)

    def pick_color_at(self, x_, y_):
        return _mypaintlib.ColorChangerWash_pick_color_at(self, x_, y_)

    def __init__(self):
        this = _mypaintlib.new_ColorChangerWash()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_ColorChangerWash
ColorChangerWash_swigregister = _mypaintlib.ColorChangerWash_swigregister
ColorChangerWash_swigregister(ColorChangerWash)
ccw_size = cvar.ccw_size
v06_colorchanger = cvar.v06_colorchanger

class ColorChangerCrossedBowl(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ColorChangerCrossedBowl, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ColorChangerCrossedBowl, name)
    __repr__ = _swig_repr
    __swig_setmethods__["brush_h"] = _mypaintlib.ColorChangerCrossedBowl_brush_h_set
    __swig_getmethods__["brush_h"] = _mypaintlib.ColorChangerCrossedBowl_brush_h_get
    if _newclass:
        brush_h = _swig_property(_mypaintlib.ColorChangerCrossedBowl_brush_h_get, _mypaintlib.ColorChangerCrossedBowl_brush_h_set)
    __swig_setmethods__["brush_s"] = _mypaintlib.ColorChangerCrossedBowl_brush_s_set
    __swig_getmethods__["brush_s"] = _mypaintlib.ColorChangerCrossedBowl_brush_s_get
    if _newclass:
        brush_s = _swig_property(_mypaintlib.ColorChangerCrossedBowl_brush_s_get, _mypaintlib.ColorChangerCrossedBowl_brush_s_set)
    __swig_setmethods__["brush_v"] = _mypaintlib.ColorChangerCrossedBowl_brush_v_set
    __swig_getmethods__["brush_v"] = _mypaintlib.ColorChangerCrossedBowl_brush_v_get
    if _newclass:
        brush_v = _swig_property(_mypaintlib.ColorChangerCrossedBowl_brush_v_get, _mypaintlib.ColorChangerCrossedBowl_brush_v_set)

    def set_brush_color(self, h, s, v):
        return _mypaintlib.ColorChangerCrossedBowl_set_brush_color(self, h, s, v)

    def get_size(self):
        return _mypaintlib.ColorChangerCrossedBowl_get_size(self)

    def render(self, obj):
        return _mypaintlib.ColorChangerCrossedBowl_render(self, obj)

    def pick_color_at(self, x_, y_):
        return _mypaintlib.ColorChangerCrossedBowl_pick_color_at(self, x_, y_)

    def __init__(self):
        this = _mypaintlib.new_ColorChangerCrossedBowl()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _mypaintlib.delete_ColorChangerCrossedBowl
ColorChangerCrossedBowl_swigregister = _mypaintlib.ColorChangerCrossedBowl_swigregister
ColorChangerCrossedBowl_swigregister(ColorChangerCrossedBowl)
ccdb_size = cvar.ccdb_size

class ProgressivePNGWriter(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ProgressivePNGWriter, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ProgressivePNGWriter, name)
    __repr__ = _swig_repr

    def __init__(self, file, w, h, has_alpha, save_srgb_chunks):
        this = _mypaintlib.new_ProgressivePNGWriter(file, w, h, has_alpha, save_srgb_chunks)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def write(self, arr):
        return _mypaintlib.ProgressivePNGWriter_write(self, arr)

    def close(self):
        return _mypaintlib.ProgressivePNGWriter_close(self)
    __swig_destroy__ = _mypaintlib.delete_ProgressivePNGWriter
ProgressivePNGWriter_swigregister = _mypaintlib.ProgressivePNGWriter_swigregister
ProgressivePNGWriter_swigregister(ProgressivePNGWriter)


def load_png_fast_progressive(filename, get_buffer_callback, convert_to_srgb):
    return _mypaintlib.load_png_fast_progressive(filename, get_buffer_callback, convert_to_srgb)
load_png_fast_progressive = _mypaintlib.load_png_fast_progressive

def tile_flood_fill(src, dst, seeds, targ_r, targ_g, targ_b, targ_a, fill_r, fill_g, fill_b, min_x, min_y, max_x, max_y, tolerance):
    return _mypaintlib.tile_flood_fill(src, dst, seeds, targ_r, targ_g, targ_b, targ_a, fill_r, fill_g, fill_b, min_x, min_y, max_x, max_y, tolerance)
tile_flood_fill = _mypaintlib.tile_flood_fill

def evhack_gdk_window_add_filter(window, data):
    return _mypaintlib.evhack_gdk_window_add_filter(window, data)
evhack_gdk_window_add_filter = _mypaintlib.evhack_gdk_window_add_filter

def evhack_gdk_window_remove_filter(window, data):
    return _mypaintlib.evhack_gdk_window_remove_filter(window, data)
evhack_gdk_window_remove_filter = _mypaintlib.evhack_gdk_window_remove_filter

def gdkpixbuf_get_pixels_array(pixbuf_pyobject):
    return _mypaintlib.gdkpixbuf_get_pixels_array(pixbuf_pyobject)
gdkpixbuf_get_pixels_array = _mypaintlib.gdkpixbuf_get_pixels_array
# This file is compatible with both classic and new-style classes.


