本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
示例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;
}
示例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);
}