Drawable
is a base class of Window
and Pixmap
objects. See Window, and Pixmap.
See Resource, for additional methods.
Drawable
: get_geometry ( ) ¶Returns Window(’root’), Int16(’x’), Int16(’y’), Card16(’width’), Card16(’height’), Card16(’border_width’),
Drawable
: create_pixmap ( width, height, depth ) ¶Returns Pixmap.
Drawable
: create_gc ( **keys ) ¶Returns GC.
Drawable
: copy_area ( gc, src_drawable, src_x, src_y, width, height, dst_x, dst_y, onerror = None ) ¶Drawable
: copy_plane ( gc, src_drawable, src_x, src_y, width, height, dst_x, dst_y, bit_plane, onerror = None ) ¶Drawable
: poly_point ( gc, coord_mode, points, onerror = None ) ¶request.PolyPoint(display = self.display, onerror = onerror, coord_mode = coord_mode, drawable = self.id, gc = gc, points = points)
Drawable
: point ( gc, x, y, onerror = None ) ¶Drawable
: poly_line ( gc, coord_mode, points, onerror = None ) ¶Drawable
: line ( gc, x1, y1, x2, y2, onerror = None ) ¶Drawable
: poly_segment ( gc, segments, onerror = None ) ¶Drawable
: poly_rectangle ( gc, rectangles, onerror = None ) ¶Drawable
: rectangle ( gc, x, y, width, height, onerror = None ) ¶Drawable
: poly_arc ( gc, arcs, onerror = None ) ¶Drawable
: arc ( gc, x, y, width, height, angle1, angle2, onerror = None ) ¶Drawable
: fill_poly ( gc, shape, coord_mode, points, onerror = None ) ¶Drawable
: poly_fill_rectangle ( gc, rectangles, onerror = None ) ¶Drawable
: fill_rectangle ( gc, x, y, width, height, onerror = None ) ¶Drawable
: poly_fill_arc ( gc, arcs, onerror = None ) ¶Drawable
: fill_arc ( gc, x, y, width, height, angle1, angle2, onerror = None ) ¶Drawable
: put_image ( ) ¶Not implemented yet.
Drawable
: get_image ( ) ¶Not implemented yet.
Drawable
: draw_text ( gc, x, y, text, onerror = None ) ¶Drawable
: poly_text ( gc, x, y, items, onerror = None ) ¶Drawable
: poly_text_16 ( gc, x, y, items, onerror = None ) ¶Drawable
: image_text ( gc, x, y, string, onerror = None ) ¶Drawable
: image_text_16 ( gc, x, y, string, onerror = None ) ¶Drawable
: query_best_size ( item_class, width, height ) ¶Returns Card16(’width’), Card16(’height’),