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


C# Request.write4方法代码示例

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


在下文中一共展示了Request.write4方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: create

     // opcode 94 - create glyph cursor
     public void create(Font src, Font mask, int source_char, 
 int mask_char, int fg_r, int fg_g, int fg_b, 
 int bg_r, int bg_g, int bg_b)
     {
         Request request = new Request (display, 94, 8);
         request.write4 (id);
         request.write4 (src.id);
         request.write4 (mask.id);
         request.write2 (source_char);
         request.write2 (mask_char);
         request.write2 (fg_r);
         request.write2 (fg_g);
         request.write2 (fg_b);
         request.write2 (bg_r);
         request.write2 (bg_g);
         request.write2 (bg_b);
         display.send_request (request);
     }
开发者ID:jbnivoit,项目名称:projects,代码行数:19,代码来源:Cursor.cs

示例2: free

 // opcode 95 - free cursor
 /**
    * @see <a href="XFreeCursor.html">XFreeCursor</a>
    */
 public void free()
 {
     Request request = new Request (display, 95, 2);
     request.write4 (id);
     display.send_request (request);
 }
开发者ID:jbnivoit,项目名称:projects,代码行数:10,代码来源:Cursor.cs

示例3: write

 public void write(Request request)
 {
     for (int i=0; i<data.Length && i<32; i++)
       if ((bitmask & 1 << i) != 0)
     request.write4 (data [i]);
 }
开发者ID:jbnivoit,项目名称:projects,代码行数:6,代码来源:ValueList.cs

示例4: Cursor

     // opcode 93 - create cursor
     /**
        * @param mask possible: {@link Pixmap#NONE}
        * @see <a href="XCreatePixmapCursor.html">XCreatePixmapCursor</a>
        */
     public Cursor(Pixmap src, Pixmap mask, int source_char,  
 int mask_char, int fg_r, int fg_g, int fg_b, 
 int bg_r, int bg_g, int bg_b, int x, int y)
         : base(src.display)
     {
         Request request = new Request (display, 93, 8);
         request.write4 (id);
         request.write4 (src.id);
         request.write4 (mask.id);
         request.write2 (fg_r);
         request.write2 (fg_g);
         request.write2 (fg_b);
         request.write2 (bg_r);
         request.write2 (bg_g);
         request.write2 (bg_b);
         request.write2 (x);
         request.write2 (y);
         display.send_request (request);
     }
开发者ID:jbnivoit,项目名称:projects,代码行数:24,代码来源:Cursor.cs

示例5: send_client_info

 // GL_ARB_multitexture
 // GL_ARB_texture_cube_map
 // GL_ARB_tranpose_matrix
 // GL_EXT_clip_volume_hint
 // GL_EXT_compiled_vertex_array
 // GL_EXT_histogram
 // GL_EXT_packed_pixels
 // GL_EXT_paletted_texture
 // GL_EXT_point_parameters
 // GL_EXT_polygon_offset
 // GL_EXT_rescale_normal
 // GL_EXT_shared_texture_palette
 // GL_EXT_stencil_wrap
 // GL_EXT_texture3D
 // GL_EXT_texture_env_add
 // GL_EXT_texture_env_combine
 // GL_EXT_texture_object
 // GL_EXT_texture_lod_bias
 // GL_EXT_vertex_array
 // GL_HP_occlusion_test
 // GL_INGR_blend_func_separate
 // GL_MESA_window_pos
 // GL_MESA_resize_buffers
 // GL_NV_texgen_reflection
 // GL_PGI_misc_hints
 // GL_SGI_color_matrix
 // GL_SGI_color_table
 // GL_SGIS_pixel_texture
 // GL_SGIS_texture_edge_clamp
 // GL_SGIX_pixel_texture
 // glx opcode 20 - client info
 private void send_client_info()
 {
     Request request = new Request (display, major_opcode, 20,
       4+Data.unit (CLIENT_EXTENSION_STRING));
     request.write4 (CLIENT_MAJOR_VERSION);
     request.write4 (CLIENT_MINOR_VERSION);
     request.write4 (CLIENT_EXTENSION_STRING.Length);
     request.write1 (CLIENT_EXTENSION_STRING);
     display.send_request (request);
 }
开发者ID:jbnivoit,项目名称:projects,代码行数:41,代码来源:GLX.cs

示例6: visual_configs

        // glx opcode 14 - get visual configs
        public VisualConfig[] visual_configs(int screen_no)
        {
            if (visual_configs_cache [screen_no] != null)
              return visual_configs_cache [screen_no];

            Request request = new Request (display, major_opcode, 14, 2);
            request.write4 (screen_no);

            Data reply = display.read_reply (request);
            int visual_count = reply.read4 (8);
            int property_count = reply.read4 (12);

            VisualConfig [] vcs = new VisualConfig [visual_count];
            for (int i=0, offset=32; i<visual_count; i++) {
              vcs [i] = new VisualConfig (reply, offset, property_count);
              offset += vcs [i].Length;
            }

            visual_configs_cache [screen_no] = vcs;
            return vcs;
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:22,代码来源:GLX.cs

示例7: server_string

        // glx opcode 19 - query server string
        /**
           * @param name valid:
           * {@link #VENDOR},
           * {@link #VERSION},
           * {@link #EXTENSIONS}
           *
           * @see <a href="glXQueryServerString.html">glXQueryServerString</a>
           */
        public String server_string(int screen_no, int name)
        {
            Request request = new Request (display, major_opcode, 19, 3);
            request.write4 (screen_no);
            request.write4 (name);

            Data reply = display.read_reply (request);
            int len = reply.read4 (12);
            return reply.read_string (32, len-1);
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:19,代码来源:GLX.cs

示例8: fb_configs

        // glx opcode 21 - get fb configs
        public Data fb_configs(int screen_no)
        {
            // TODO 1.3
            Request request = new Request (display, major_opcode, 21, 2);
            request.write4 (screen_no);

            Data reply = display.read_reply (request);
            return reply;
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:10,代码来源:GLX.cs

示例9: GLX

        //throws gnu.x11.extension.NotFoundException {
        // glx opcode 7 - get version
        /**
           * @see <a href="glXQueryVersion.html">glXQueryVersion</a>
           */
        public GLX(gnu.x11.Display display)
            : base(display, "GLX", MINOR_OPCODE_STRINGS, 13, 1)
        {
            // check version before any other operations
            Request request = new Request (display, major_opcode, 7, 3);
            request.write4 (CLIENT_MAJOR_VERSION);
            request.write4 (CLIENT_MINOR_VERSION);

            Data reply = display.read_reply (request);
            server_major_version = reply.read4 (8);
            server_minor_version = reply.read4 (12);

            send_client_info ();
            visual_configs_cache = new VisualConfig [display.screens.Length] [];
        }
开发者ID:jbnivoit,项目名称:projects,代码行数:20,代码来源:GLX.cs


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