當前位置: 首頁>>代碼示例>>C#>>正文


C# Request.write4方法代碼示例

本文整理匯總了C#中gnu.x11.Request.write4方法的典型用法代碼示例。如果您正苦於以下問題:C# Request.write4方法的具體用法?C# Request.write4怎麽用?C# Request.write4使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在gnu.x11.Request的用法示例。


在下文中一共展示了Request.write4方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: compare_cursor

 // xtest opcode 1 - compare cursor
 /**
    * @param cursor possible:
    * {@link Cursor#NONE},
    * {@link Cursor#CURRENT}
    *
    * @see <a href="XTestCompareCursorWithWindow.html">
    * XTestCompareCursorWithWindow</a>
    */
 public bool compare_cursor(Window window, Cursor cursor)
 {
     Request request = new Request (display, major_opcode, 1, 3);
     request.write4 (window.id);
     request.write4 (cursor.id);
     return display.read_reply (request).read_bool (1);
 }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:16,代碼來源:XTest.cs

示例2: Colormap

 // opcode 78 - create colormap
 /**
    * @param alloc valid:
    * {@link #NONE},
    * {@link #ALL}
    *
    * @see <a href="XCreateColormap.html">XCreateColormap</a>
    */
 public Colormap(Window window, int visual_id, bool alloc_all)
     : base(window.display)
 {
     Request request = new Request (display, 78, alloc_all, 4);
     request.write4 (id);
     request.write4 (window.id);
     request.write4 (visual_id);
     display.send_request (request);
 }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:17,代碼來源:Colormap.cs

示例3: change

 // render opcode 5 - change picture
 /**
    * @see <a href="XRenderChangePicture.html">XRenderChangePicture</a>
    */
 public void change(Attributes attr)
 {
     Request request = new Request (display, render.major_opcode, 5,
       5+attr.count ());
     request.write4 (id);
     request.write4 (attr.bitmask);
     attr.write (request);
     display.send_request (request);
 }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:13,代碼來源:Picture.cs

示例4: visual_info

        // 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));
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:14,代碼來源:EVI.cs

示例5: GlyphSet

        // render opcode 18 - reference glyph set
        /**
           * @see <a href="XRenderReferenceGlyphSet.html">
           * XRenderReferenceGlyphSet</a>
           */
        public GlyphSet(GlyphSet src)
            : base(src.display)
        {
            render = src.render;

            Request request = new Request (display, render.major_opcode, 18, 3);
            request.write4 (id);
            request.write4 (src.id);
            display.send_request (request);
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:15,代碼來源:GlyphSet.cs

示例6: Pixmap

     // 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);
     }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:15,代碼來源:Pixmap.cs

示例7: Pixmap

        // 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);
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:17,代碼來源:Pixmap.cs

示例8: Picture

        // 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);
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:21,代碼來源:Picture.cs

示例9: info

        // opcode 47 - query font
        /**
           * @see <a href="XQueryFont.html">XQueryFont</a>
           */
        public FontReply info()
        {
            Request request = new Request (display, 47, 2);
            request.write4 (id);

            return new FontReply (display.read_reply (request));
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:11,代碼來源:Fontable.cs

示例10: xid_list

        // xc-misc opcode 2 - get xid list
        public Enum xid_list(int count)
        {
            Request request = new Request (display, major_opcode, 2, 2);
            request.write4 (count);

            Data reply = display.read_reply (request);
            return new Enum (reply, 32, reply.read4 (8));
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:9,代碼來源:XCMisc.cs

示例11: text_extent

        // opcode 48 - query text extents
        /**
           * @see <a href="XQueryTextExtents.html">XQueryTextExtents</a>
           */
        public TextExtentReply text_extent(String s)
        {
            Request request = new Request (display, 48, s.Length % 2 == 1,
              2+Data.unit (s));

            request.write4 (id);
            request.write1 (s);
            return new TextExtentReply (display.read_reply (request));
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:13,代碼來源:Fontable.cs

示例12: best_size

        // opcode 97 - query best size
        /**
           * @param klass valid:
           * {@link #CURSOR},
           * {@link #TILE},
           * {@link #STIPPLE}
           *
           * @see <a href="XQueryBestSize.html">XQueryBestSize</a>
           */
        public Size best_size(int klass, int width, int height)
        {
            Request request = new Request (display, 97, 3);
            request.write4 (id);
            request.write2 (width);
            request.write2 (height);

            Data reply = display.read_reply (request);
            return new Size (reply.read2 (8), reply.read2 (10));
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:19,代碼來源:Drawable.cs

示例13: Font

        // opcode 45 - open font
        /**
           * @see <a href="XLoadFont.html">XLoadFont</a>
           */
        public Font(Display display, String name)
            : base(display)
        {
            this.name = name;

            Request request = new Request (display, 45, 3+Data.unit (name));
            request.write4 (id);
            request.write2 (name.Length);
            request.write2_unused ();
            request.write1 (name);
            display.send_request (request);
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:16,代碼來源:Font.cs

示例14: alloc_color

        // opcode 84 - alloc color
        /**
           * @see <a href="XAllocColor.html">XAllocColor</a>
           */
        public Color alloc_color(int red, int green, int blue)
        {
            Request request = new Request (display, 84, 4);
            request.write4 (id);
            request.write2 (red);
            request.write2 (green);
            request.write2 (blue);

            Data reply = display.read_reply (request);
            Color color = new Color (reply.read4 (16));
            color.exact = new RGB (reply.read2 (8), reply.read2 (10), reply.read2 (12));
            return color;
        }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:17,代碼來源:Colormap.cs

示例15: fill_rectangle

     // render opcode 26 - fill rectangles
     /**
        * @see <a href="XRenderFillRectangle.html">XRenderFillRectangle</a>
        */
     public void fill_rectangle(int op, Color color, int x, int y, 
 int width, int height)
     {
         Request request = new Request (display, render.major_opcode, 26, 7);
         request.write1 (op);
         request.write3_unused ();
         request.write4 (id);
         request.write2 (x);
         request.write2 (y);
         request.write2 (width);
         request.write2 (height);
         request.write2 (color.red);
         request.write2 (color.green);
         request.write2 (color.blue);
         request.write2 (color.alpha);
         display.send_request (request);
     }
開發者ID:jbnivoit,項目名稱:projects,代碼行數:21,代碼來源:Picture.cs


注:本文中的gnu.x11.Request.write4方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。