# Path: canvas/canvas.py
# class Canvas(object):
#     def __init__(self, slide, height, width):
#         """
#         Create a new Canvas interface to a provided python-pptx `Slide`.
# 
#         Parameters
#         ----------
#         slide : Slide
#             python-pptx Slide
#         height : int
#             Height of Slide in EMUs
#         width : int
#             Width of Slide in EMUs
#         """
#         self._slide = slide
#         self._slide_height = height
#         self._slide_width = width
# 
#     def getContext(self, contextType):
#         """
#         Create a new Context to work with.
# 
#         This will build a new PPTX Shape to work with.
# 
#         Parameters
#         ----------
#         contextType : str
#             The type of context to use. `2d` is the only available option.
#         """
#         if contextType is '2d':
#             return CanvasRenderingContext2D(self)
# 
#         return None
# 
#     def  probablySupportsContext(self, contextType):
#         """
#         Return boolean value if the Canvas supports the requested contextType.
# 
#         Parameters
#         ----------
#         contextType : str
#             The type of context to check.
#         """
#         if contextType is '2d':
#             return True
# 
#         return False


from pptx import Presentation
from pptx.util import Length, Pt
from canvas import Canvas
from pprint import pprint


if __name__ == '__main__':

    prs = Presentation()
    blank_slide_layout = prs.slide_layouts[6]
    slide = prs.slides.add_slide(blank_slide_layout)


# Path: canvas/canvas.py
# class Canvas(object):
#     def __init__(self, slide, height, width):
#         """
#         Create a new Canvas interface to a provided python-pptx `Slide`.
# 
#         Parameters
#         ----------
#         slide : Slide
#             python-pptx Slide
#         height : int
#             Height of Slide in EMUs
#         width : int
#             Width of Slide in EMUs
#         """
#         self._slide = slide
#         self._slide_height = height
#         self._slide_width = width
# 
#     def getContext(self, contextType):
#         """
#         Create a new Context to work with.
# 
#         This will build a new PPTX Shape to work with.
# 
#         Parameters
#         ----------
#         contextType : str
#             The type of context to use. `2d` is the only available option.
#         """
#         if contextType is '2d':
#             return CanvasRenderingContext2D(self)
# 
#         return None
# 
#     def  probablySupportsContext(self, contextType):
#         """
#         Return boolean value if the Canvas supports the requested contextType.
# 
#         Parameters
#         ----------
#         contextType : str
#             The type of context to check.
#         """
#         if contextType is '2d':
#             return True
# 
#         return False


# Path: demo.py
from pptx import Presentation
from pptx.util import Length, Pt
from canvas import Canvas
from pprint import pprint



if __name__ == '__main__':

    prs = Presentation()
    blank_slide_layout = prs.slide_layouts[6]
    slide = prs.slides.add_slide(blank_slide_layout)


    canvas = Canvas(slide, prs.slide_height, prs.slide_width)