a
    ¦ˆcQ	  ã                   @   s8   d Z ddlmZmZ G dd„ deƒZG dd„ deƒZdS )ú# The interface for an image cache. é    )Ú	HasTraitsÚ	Interfacec                   @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	ÚIImageCacher   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   úW/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/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
   Ú
get_bitmap9   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   I   s   r   N)r   Z
traits.apir   r   r   r   r   r   r   r
   Ú<module>   s   8