3
<Ad]L
  ã               @   s4   d Z ddlmZ G dd„ deƒZG dd„ deƒZdS )z# The interface for an image cache. é    )Ú	Interfacec               @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	ÚIImageCachez# The interface for an image cache. c             C   s   dS )zî Creates a new image cache for images of the given size.

        Parameters
        ----------
        width : int
            The width of the images in pixels
        height : int
            The height of the images in pixels
        N© )ÚselfÚwidthÚheightr   r   ún/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/i_image_cache.pyÚ__init__   s    zIImageCache.__init__c             C   s   dS )aE   Returns the scaled image specified.

        Parameters
        ----------
        filename : str
            The name of the file containing the image.

        Returns
        -------
        scaled : toolkit image
            The image referred to in the file, scaled to the cache's width
            and height.
        Nr   )r   Úfilenamer   r   r   Ú	get_image+   s    zIImageCache.get_imagec             C   s   dS )a_   Returns the scaled image specified as a bitmap.

        Parameters
        ----------
        filename : str
            The name of the file containing the image.

        Returns
        -------
        scaled : toolkit bitmap
            The image referred to in the file, scaled to the cache's width
            and height, as a bitmap.
        Nr   )r   r
   r   r   r   Ú
get_bitmap=   s    zIImageCache.get_bitmapN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdS )ÚMImageCachezv The mixin class that contains common code for toolkit specific
    implementations of the IImageCache interface.
    N)r   r   r   r   r   r   r   r   r   M   s   r   N)r   Z
traits.apir   r   Úobjectr   r   r   r   r   Ú<module>   s   8