§
    jÄ-cç  ã                   óf   — d Z ddlmZ ddlmZmZ ddlmZmZ  G d„ de¦  «        Z	e	eej
        <   dS )	z¹
    cairocffi.xcb
    ~~~~~~~~~~~~~

    Bindings for XCB surface objects using xcffib.

    :copyright: Copyright 2014-2019 by Simon Sapin
    :license: BSD, see LICENSE for details.
é    )Úvisualtype_to_c_structé   )ÚcairoÚ	constants)ÚSURFACE_TYPE_TO_CLASSÚSurfacec                   ó   — e Zd ZdZd„ Zd„ ZdS )Ú
XCBSurfacea;  The XCB surface is used to render cairo graphics to X Window System
    windows and pixmaps using the XCB library.

    Creates a cairo surface that targets the given drawable (pixmap or window).

    .. note::

        This class works using objects and libraries in :mod:`xcffib`

    :param conn: The :class:`xcffib.Connection` for an open XCB connection
    :param drawable:
        An XID corresponding to an XCB drawable (a pixmap or a window)
    :param visual: An :class:`xcffib.xproto.VISUALTYPE` object.
    :param width: integer
    :param height: integer
    c                 óˆ   — t          |¦  «        }t          j        |j        ||||¦  «        }t	          j        | |¦  «         d S )N)r   r   Úcairo_xcb_surface_createÚ_connr   Ú__init__)ÚselfÚconnÚdrawableÚvisualÚwidthÚheightÚc_visualÚps           ú//usr/lib/python3/dist-packages/cairocffi/xcb.pyr   zXCBSurface.__init__"   sG   € Ý)¨&Ñ1Ô1ˆåÔ*ØŒJ˜ (¨E°6ñ;ô ;ˆåÔ˜˜qÑ!Ô!Ð!Ð!Ð!ó    c                 ód   — t          j        | j        ||¦  «         |                      ¦   «          dS )am  
        Informs cairo of the new size of the X Drawable underlying the surface.
        For a surface created for a Window (rather than a Pixmap), this
        function must be called each time the size of the window changes (for
        a subwindow, you are normally resizing the window yourself, but for a
        toplevel window, it is necessary to listen for
        :class:`xcffib.xproto.ConfigureNotifyEvent`'s).

        A Pixmap can never change size, so it is never necessary to call this
        function on a surface created for a Pixmap.

        :param width: integer
        :param height: integer
        N)r   Úcairo_xcb_surface_set_sizeÚ_pointerÚ_check_status)r   r   r   s      r   Úset_sizezXCBSurface.set_size)   s3   € õ 	Ô(¨¬¸¸vÑFÔFÐFØ×ÒÑÔÐÐÐr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r   r
   r
      s<   € € € € € ðð ð "ð "ð "ðð ð ð ð r   r
   N)r!   Úxcffibr   Ú r   r   Úsurfacesr   r   r
   ÚSURFACE_TYPE_XCBr"   r   r   ú<module>r'      s”   ððð ð *Ð )Ð )Ð )Ð )Ð )à Ð Ð Ð Ð Ð Ð Ð Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4ð(ð (ð (ð (ð (�ñ (ô (ð (ðV 5?Ð �iÔ0Ñ 1Ð 1Ð 1r   