# Path: jasy/asset/sprite/BlockNode.py
# class BlockNode():
#     
#     def __init__(self, parent, x, y, w, h):
# 
#         parent.nodes.append(self)
#         self.x = x
#         self.y = y
#         self.w = w
#         self.h = h
#         self.down = None
#         self.right = None
#         self.used = False


from jasy.asset.sprite.BlockNode import BlockNode
#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
#


class BlockPacker():
    
    def __init__(self, w = 0, h = 0):

        self.nodes = []
        self.autogrow = False
        if w > 0 and h > 0:

# Path: jasy/asset/sprite/BlockNode.py
# class BlockNode():
#     
#     def __init__(self, parent, x, y, w, h):
# 
#         parent.nodes.append(self)
#         self.x = x
#         self.y = y
#         self.w = w
#         self.h = h
#         self.down = None
#         self.right = None
#         self.used = False


# Path: jasy/asset/sprite/BlockPacker.py
from jasy.asset.sprite.BlockNode import BlockNode

#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
#


class BlockPacker():
    
    def __init__(self, w = 0, h = 0):

        self.nodes = []
        self.autogrow = False
        if w > 0 and h > 0:

            self.root = BlockNode(self, 0, 0, w, h)