<s> """<STR_LIT>""" <EOL> from xcffib import visualtype_to_c_struct <EOL> from . import cairo , constants <EOL> from . surfaces import Surface , SURFACE_TYPE_TO_CLASS <EOL> class XCBSurface ( Surface ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , conn , drawable , visual , width , height ) : <EOL> c_visual = visualtype_to_c_struct ( visual ) <EOL> p = cairo . cairo_xcb_surface_create ( <EOL> conn . _conn , drawable , c_visual , width , height ) <EOL> Surface . __init__ ( self , p ) <EOL> def set_size ( self , width , height ) : <EOL> """<STR_LIT>""" <EOL> cairo . cairo_xcb_surface_set_size ( self . _pointer , width , height ) <EOL> self . _check_status ( ) <EOL> SURFACE_TYPE_TO_CLASS [ constants . SURFACE_TYPE_XCB ] = XCBSurface </s>
