当前位置: 首页>>代码示例>>C#>>正文


C# x11.Request类代码示例

本文整理汇总了C#中gnu.x11.Request的典型用法代码示例。如果您正苦于以下问题:C# Request类的具体用法?C# Request怎么用?C# Request使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Request类属于gnu.x11命名空间,在下文中一共展示了Request类的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: 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

示例3: 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

示例4: 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

示例5: Shape

 //throws NotFoundException {
 // shape opcode 0 - query version
 /**
    * @see <a href="XShapeQueryExtension.html">XShapeQueryExtension</a>
    */
 public Shape(Display display)
     : base(display, "SHAPE", MINOR_OPCODE_STRINGS, 0, 1)
 {
     // check version before any other operations
     Request request = new Request (display, major_opcode, 0, 1);
     Data reply = display.read_reply (request);
     server_major_version = reply.read2 (8);
     server_minor_version = reply.read2 (10);
 }
开发者ID:jbnivoit,项目名称:projects,代码行数:14,代码来源:Shape.cs

示例6: 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

示例7: Print

 //throws gnu.x11.extension.NotFoundException {
 // print opcode 0 - query version
 /**
    * @see <a href="XpQueryVersion.html">XpQueryVersion</a>
    */
 public Print(Display display)
     : base(display, "XpExtension", MINOR_OPCODE_STRINGS, 2, 2)
 {
     // check version before any other operations
     Request request = new Request (display, major_opcode, 0, 1);
     Data reply = display.read_reply (request);
     server_major_version = reply.read2 (4);
     server_minor_version = reply.read2 (4);
 }
开发者ID:jbnivoit,项目名称:projects,代码行数:14,代码来源:Print.cs

示例8: 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

示例9: GlyphSet

        // render opcode 17 - create glyph set
        /**
           * @see <a href="XRenderCreateGlyphSet.html">XRenderCreateGlyphSet</a>
           */
        public GlyphSet(Render render, Picture.Format format)
            : base(render.display)
        {
            this.render = render;

            Request request = new Request (display, render.major_opcode, 17, 3);
            request.write4 (id);
            request.write4 (format.id ());
            display.send_request (request);
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:14,代码来源:GlyphSet.cs

示例10: 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

示例11: 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

示例12: 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

示例13: XCMisc

        //throws NotFoundException {
        // xc-misc opcode 0 - get version
        public XCMisc(gnu.x11.Display display)
            : base(display, "XC-MISC", MINOR_OPCODE_STRINGS)
        {
            // check version before any other operations
            Request request = new Request (display, major_opcode, 0, 2);
            request.write2 (CLIENT_MAJOR_VERSION);
            request.write2 (CLIENT_MINOR_VERSION);

            Data reply = display.read_reply (request);
            server_major_version = reply.read2 (8);
            server_minor_version = reply.read2 (10);
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:14,代码来源:XCMisc.cs

示例14: 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

示例15: DBE

        //throws NotFoundException {
        // dbe opcode 0 - get version
        public DBE(gnu.x11.Display display)
            : base(display, "DOUBLE-BUFFER", MINOR_OPCODE_STRINGS, 1, 0)
        {
            // check version before any other operations
            Request request = new Request (display, major_opcode, 0, 2);
            request.write1 (CLIENT_MAJOR_VERSION);
            request.write1 (CLIENT_MINOR_VERSION);

            Data reply = display.read_reply (request);
            server_major_version = reply.read1 (8);
            server_minor_version = reply.read1 (9);
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:14,代码来源:DBE.cs


注:本文中的gnu.x11.Request类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。