// opcode 53 - create pixmap /** * @see <a href="XCreatePixmap.html">XCreatePixmap</a> */ public Pixmap(Drawable drawable, int width, int height, int depth) : base(drawable.display) { this.width = width; this.height = height; Request request = new Request (display, 53, depth, 4); request.write4 (id); request.write4 (drawable.id); request.write2 (width); request.write2 (height); display.send_request (request); }
// render opcode 4 - create picture /** * @see <a href="XRenderCreatePicture.html">XRenderCreatePicture</a> * @see Render#create_picture(Drawable, Picture.Format, * Picture.Attributes) */ public Picture(Render render, Drawable drawable, Format format, Attributes attr) : base(render.display) { this.render = render; Request request = new Request (display, render.major_opcode, 4, 5+attr.count ()); request.write4 (id); request.write4 (drawable.id); request.write4 (format.id ()); request.write4 (attr.bitmask); attr.write (request); display.send_request (request); }
public Fill (Drawable drawable, GC gc, Point [] points, int shape, int coordinate_mode) :base (69, drawable, gc, points, 1) { this.shape = shape; this.coordinate_mode = coordinate_mode; }
public Poly (int opcode, Drawable drawable, GC gc, Object [] items, int item_unit_count) { this.opcode = opcode; this.drawable = drawable; this.gc = gc; items_sets.Add (items); items_sets_unit_count = items.Length * item_unit_count; }
/** * @see #GC(Drawable, GC.Values) */ public GC(Drawable drawable) : this(drawable, Values.EMPTY) { }
/** * @see #create(Drawable, GC.Values) */ public GC(Drawable drawable, Values values) : this(drawable.display) { create (drawable, values); }
// glx opcode 11 - swap buffers /** * @see <a href="glXSwapBuffers.html">glXSwapBuffers</a> */ public void swap_buffers(Drawable drawable) { Request request = begin_command_request (11, 3); request.write4 (tag); request.write4 (drawable.id); display.send_request (request); }
public Rectangle (Drawable drawable, GC gc, gnu.x11.Rectangle [] rectangles, bool fill) :base (fill ? 70 : 67, drawable, gc, rectangles, 2){ }
/** * @see Picture#Picture(Render, Drawable, Picture.Format, Picture.Attributes) */ public Picture create_picture(Drawable drawable, Picture.Format format, Picture.Attributes attr) { return new Picture (this, drawable, format, attr); }
// opcode 62 - copy area /** * @see <a href="XCopyArea.html">XCopyArea</a> */ public void copy_area(Drawable src, GC gc, int src_x, int src_y, int width, int height, int dst_x, int dst_y) { Request request = new Request (display, 62, 7); request.write4 (src.id); request.write4 (id); request.write4 (gc.id); request.write2 (src_x); request.write2 (src_y); request.write2 (dst_x); request.write2 (dst_y); request.write2 (width); request.write2 (height); display.send_request (request); }
/** * @see #copy_area(Drawable, GC, int, int, int, int, int, int) */ public void copy_area(Drawable src, GC gc) { copy_area (src, gc, 0, 0, src.width, src.height, 0, 0); }
public Enum visual_info(Drawable [] screen_specifiers) { Request request = new Request (display, major_opcode, 6, 2+screen_specifiers.Length); request.write4 (screen_specifiers.Length); for (int i=0; i<screen_specifiers.Length; i++) request.write4 (screen_specifiers [i].id); Data reply = display.read_reply (request); return new VisualsInfoEnum (reply, 32, reply.read4 (8)); }
/** * @see #Pixmap(Drawable, int) */ public Pixmap(Drawable drawable) : this(drawable, drawable.display.default_depth) { }
/** * @see #Pixmap(Drawable, int, int, int) */ public Pixmap(Drawable drawable, int depth) : this(drawable, drawable.width, drawable.height, depth) { }
public Arc (Drawable drawable, GC gc, gnu.x11.Arc [] arcs, bool fill) :base (fill ? 71 : 68, drawable, gc, arcs, 3){ }
// render opcode 3 - query dithers public void dithers(Drawable drawable) { Request request = new Request (display, major_opcode, 3, 2); request.write4 (drawable.id); display.send_request (request); }
public Dot (Drawable drawable, GC gc, gnu.x11.Point [] points, int coordinate_mode, bool join) :base (join ? 65 : 64, drawable, gc, points, 1){ this.coordinate_mode = coordinate_mode; }
// opcode 55 - create gc /** * @see <a href="XCreateGC.html">XCreateGC</a> */ public void create(Drawable drawable, Values values) { Request request = new Request (display, 55, 4+values.count ()); request.write4 (id); request.write4 (drawable.id); request.write4 (values.bitmask); values.write (request); display.send_request (request); }
public Segment (Drawable drawable, GC gc, gnu.x11.Segment [] segments) : base (66, drawable, gc, segments, 2) { }
// glx opcode 5 - make current /** * @see <a href="glXMakeCurrent.html">glXMakeCurrent</a> */ public void make_current(Drawable drawable) { Request request = begin_command_request (5, 4); request.write4 (drawable.id); request.write4 (id); request.write4 (tag); Data reply = display.read_reply (request); tag = reply.read4 (8); }