Exemplo n.º 1
0
            // dbe opcode 1 - allocate back buffer name

            /**
             * @param swap_action_hint valid:
             * {@link #UNDEFINED}
             * {@link #BACKGROUND}
             * {@link #UNTOUCHED}
             * {@link #COPIED}
             */
            public BackBuffer(DBE owner, Window window, int swap_action_hint)
                : base(window.display)
            {
                this.owner  = owner;
                this.window = window;
                width       = window.width;
                height      = window.height;

                Request request = new Request(this.display, owner.major_opcode, 1, 4);

                request.write4(window.id);
                request.write4(id);
                request.write1(swap_action_hint);
                this.display.send_request(request);
            }
Exemplo n.º 2
0
            // dbe opcode 1 - allocate back buffer name
            /**
             * @param swap_action_hint valid:
             * {@link #UNDEFINED}
             * {@link #BACKGROUND}
             * {@link #UNTOUCHED}
             * {@link #COPIED}
             */
            public BackBuffer(DBE owner, Window window, int swap_action_hint)
                : base(window.display)
            {
                this.owner=owner;
                  this.window = window;
                  width = window.width;
                  height = window.height;

                  Request request = new Request (this.display, owner.major_opcode, 1, 4);
                  request.write4 (window.id);
                  request.write4 (id);
                  request.write1 (swap_action_hint);
                  this.display.send_request (request);
            }