Ejemplo n.º 1
0
        // evi opcode 1 - get visual info
        /**
           * @see <a href="XeviGetVisualInfo.html">XeviGetVisualInfo</a>
           */
        public VisualInfoReply visual_info(Visual [] visuals)
        {
            Request request = new Request (display, major_opcode, 1, 1);
            request.write4 (visuals.Length);

            for (int i=0; i<visuals.Length; i++)
              request.write4 (visuals [i].id ());

            return new VisualInfoReply (display, display.read_reply (request));
        }
Ejemplo n.º 2
0
        // glx opcode 5 - create glx pixmap

        /**
         * @see <a href="glXCreateGLXPixmap.html">glXCreateGLXPixmap</a>
         */
        public Pixmap(GLX glx, int screen_no, gnu.x11.Visual visual,
                      gnu.x11.Pixmap pixmap)

            : base(glx.display)
        {
            Request request = new Request(display, glx.major_opcode, 5, 5);

            request.write4(screen_no);
            request.write4(visual.id());
            request.write4(pixmap.id);
            request.write4(id);
            display.send_request(request);
        }
Ejemplo n.º 3
0
 public override Object next()
 {
     Visual visual = new Visual (this, 0);
     inc (24);
     return visual;
 }