# Path: debugger/enums.py
# class TypeCategory(Enum):
#     """
#     Represents type of C/C++ type.
#     """
#     Any = -1
#     Array = 1
#     BlockPointer = 2
#     Builtin = 4
#     Class = 8
#     ComplexFloat = 16
#     ComplexInteger = 32
#     Enumeration = 64
#     Function = 128
#     Invalid = 0
#     MemberPointer = 256
#     ObjCInterface = 1024
#     ObjCObject = 512
#     ObjCObjectPointer = 2048
#     Other = -2147483648
#     Pointer = 4096
#     CString = 4097
#     Reference = 8192
#     Struct = 16384
#     Typedef = 32768
#     Union = 65536
#     Vector = 131072
#     String = 42
# 
#     def nice_name(self):
#         name_mappings = {
#             TypeCategory.Class: "class",
#             TypeCategory.Struct: "struct"
#         }
#         return name_mappings.get(self, str(self))


import drawable
from debugger.enums import TypeCategory
from geometry import Padding
from size import Size
# -*- coding: utf-8 -*-
#
#    Copyright (C) 2015-2016 Jakub Beranek
#
#    This file is part of Devi.
#
#    Devi is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, version 3 of the License, or
#    (at your option) any later version.
#
#    Devi is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Devi.  If not, see <http://www.gnu.org/licenses/>.
#




class MemToViewTransformer(object):
    def __init__(self, canvas):
        """
        @type canvas: canvas.Canvas
        """
        self.function_map = {

# Path: debugger/enums.py
# class TypeCategory(Enum):
#     """
#     Represents type of C/C++ type.
#     """
#     Any = -1
#     Array = 1
#     BlockPointer = 2
#     Builtin = 4
#     Class = 8
#     ComplexFloat = 16
#     ComplexInteger = 32
#     Enumeration = 64
#     Function = 128
#     Invalid = 0
#     MemberPointer = 256
#     ObjCInterface = 1024
#     ObjCObject = 512
#     ObjCObjectPointer = 2048
#     Other = -2147483648
#     Pointer = 4096
#     CString = 4097
#     Reference = 8192
#     Struct = 16384
#     Typedef = 32768
#     Union = 65536
#     Vector = 131072
#     String = 42
# 
#     def nice_name(self):
#         name_mappings = {
#             TypeCategory.Class: "class",
#             TypeCategory.Struct: "struct"
#         }
#         return name_mappings.get(self, str(self))


# Path: gui/drawing/memtoview.py
import drawable
from debugger.enums import TypeCategory
from geometry import Padding
from size import Size

# -*- coding: utf-8 -*-
#
#    Copyright (C) 2015-2016 Jakub Beranek
#
#    This file is part of Devi.
#
#    Devi is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, version 3 of the License, or
#    (at your option) any later version.
#
#    Devi is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Devi.  If not, see <http://www.gnu.org/licenses/>.
#




class MemToViewTransformer(object):
    def __init__(self, canvas):
        """
        @type canvas: canvas.Canvas
        """
        self.function_map = {

            TypeCategory.Builtin: self.create_basic,