a
    ¦ˆc"  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )z" The base interface for an image. é    )Ú	Interfacec                   @   s.   e Zd ZdZd	dd„Zd
dd„Zddd„ZdS )ÚIImagez¥ The base interface for an image.

    This provides the interface specification that different types of image
    classes need to provide to be used by Pyface.
    Nc                 C   s   dS )aÓ   Creates a toolkit-specific image for this image.

        An image is a toolkit datastructure that is optimized for I/O,
        pixel-level access and modification, such as a wx.Image or a
        QImage.

        Parameters
        ----------
        size : (int, int) or None
            The desired size as a width, height tuple, or None if wanting
            default image size.  This is a *preferred* size and concrete
            implementations may or may not return an image of the precise
            size requested (indeed, this may be ignored).

        Returns
        -------
        image : toolkit image
            The toolkit image corresponding to the image and the specified
            size.
        N© ©ÚselfÚsizer   r   úQ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/i_image.pyÚcreate_image   s    zIImage.create_imagec                 C   s   dS )aÅ   Creates a toolkit-specific bitmap image for this image.

        A bitmap is a toolkit datastructure that is optimized for rendering
        to the screen, such as a wx.Bitmap or a QPixmap.

        Parameters
        ----------
        size : (int, int) or None
            The desired size as a width, height tuple, or None if wanting
            default image size.  This is a *preferred* size and concrete
            implementations may or may not return an image of the precise
            size requested (indeed, this may be ignored).

        Returns
        -------
        image : toolkit bitmap
            The toolkit bitmap corresponding to the image and the specified
            size.
        Nr   r   r   r   r   Úcreate_bitmap+   s    zIImage.create_bitmapc                 C   s   dS )a9   Creates a toolkit-specific icon for this image.

        An icon is a toolkit datastructure that holds several different
        variants of an image (eg. selected, disabled, etc.), such as a wx.Icon
        or a QIcon.  Most toolkits can automatically create these from other
        image classes.

        Parameters
        ----------
        size : (int, int) or None
            The desired size as a width, height tuple, or None if wanting
            default icon size.  This is a *preferred* size and concrete
            implementations may or may not return an icon of the precise
            size requested (indeed, this may be ignored).

        Returns
        -------
        image : toolkit icon
            The toolkit image corresponding to the image and the specified
            size as an icon.
        Nr   r   r   r   r   Úcreate_icon@   s    zIImage.create_icon)N)N)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r
   r   r   r   r   r   r      s   

r   N)r   Z
traits.apir   r   r   r   r   r   Ú<module>
   s   