Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
        // 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);
        }
Ejemplo n.º 3
0
   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;
   }
Ejemplo n.º 4
0
   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;
   }
Ejemplo n.º 5
0
 /**
    * @see #GC(Drawable, GC.Values)
    */
 public GC(Drawable drawable)
     : this(drawable, Values.EMPTY)
 {
 }
Ejemplo n.º 6
0
 /**
    * @see #create(Drawable, GC.Values)
    */
 public GC(Drawable drawable, Values values)
     : this(drawable.display)
 {
     create (drawable, values);
 }
Ejemplo n.º 7
0
 // 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);
 }
Ejemplo n.º 8
0
   public Rectangle (Drawable drawable, GC gc,
     gnu.x11.Rectangle [] rectangles, bool fill)
 	:base (fill ? 70 : 67, drawable, gc, rectangles, 2){
   }
Ejemplo n.º 9
0
     /**
        * @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);
     }
Ejemplo n.º 10
0
     // 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);
     }
Ejemplo n.º 11
0
 /**
    * @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);
 }
Ejemplo n.º 12
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));
        }
Ejemplo n.º 13
0
 /**
    * @see #Pixmap(Drawable, int)
    */
 public Pixmap(Drawable drawable)
     : this(drawable, drawable.display.default_depth)
 {
 }
Ejemplo n.º 14
0
 /**
    * @see #Pixmap(Drawable, int, int, int)
    */
 public Pixmap(Drawable drawable, int depth)
     : this(drawable, drawable.width, drawable.height, depth)
 {
 }
Ejemplo n.º 15
0
   public Arc (Drawable drawable, GC gc, gnu.x11.Arc [] arcs, 
     bool fill) 
 
     :base (fill ? 71 : 68, drawable, gc, arcs, 3){
   }
Ejemplo n.º 16
0
 // 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);
 }
Ejemplo n.º 17
0
   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;
   }
Ejemplo n.º 18
0
 // 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);
 }
Ejemplo n.º 19
0
 public Segment (Drawable drawable, GC gc, 
   gnu.x11.Segment [] segments) :
   base (66, drawable, gc, segments, 2) {
 }
Ejemplo n.º 20
0
        // 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);
        }