• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# x11.Request类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



Request类属于gnu.x11命名空间,在下文中一共展示了Request类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: EVI

 //throws NotFoundException {
 // evi opcode 0 - get version
 /**
    * @see <a href="XeviQueryVersion.html">XeviQueryVersion</a>
    */
 public EVI(Display display)
     : base(display, "Extended-Visual-Information", MINOR_OPCODE_STRINGS)
 {
     // check version before any other operations
     /* Note that the specification says the request includes a major and a
      * minor version, but most implementation (xfree86 3.3/4.0) does not.
      * Which one is bugged?
      */
     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,代码行数:18,代码来源:EVI.cs


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


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


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


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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# dao.AbstractConnection类代码示例发布时间:2022-05-26
下一篇:
C# Main.CairoContextEx类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap